Well, in my case, I am building a Survey system. For each new Survey designed and saved in the DB, some users need to be assigned to run this Survey. So I will make sure that for each Survey created, a new Role is created. Also, I will ask the Survey Designer to select which users can run this Survey and fill it. After that, I will programmatically create the Role and add all users in one shot.
I might have many roles, but it will be much easier for the Admin of the app to add/remove users from Roles.
Now that VS 2017 for Mac is here, I was able to create an ASP.NET MVC website (not core normal one).
Can I open the ASP.NET Zero web app on VS 2017 Mac and it will run? I can connect to Azure Database as I don't have SQL Server on Mac.
Thanks
I always thought your name is Hilal :)
So Halil, in other words, for each DbContext, you would get the DbSet and register something like: IRepository<Person> to map to EfRepositoryBase<Person>, something like that?
Thanks
Thanks Tommy. What do you mean by the theme is referenced in the MVC Views?
Thanks Ismail. So what's the process now if you can guide me? Where to start and be able to debug the source code?
Thanks!
What does it mean for a Provider to support multiple timezones? An example maybe?
Thanks :)
Thanks everyone. I was confused between using Permission or Roles
Maybe a RoleId is better as this way I can assign the same Survey to more than one users by just adding them to the role.
Thank you
Hi, In the documentation it says:
ASP.NET Boilerplate does not wrap Web API actions by default if the action has successfully executed. But it handles and wraps for exceptions.
In the ResultWrapperHandler.cs inside Web.Api project, I noticed it starts as:
protected virtual void WrapResultIfNeeded(HttpRequestMessage request, HttpResponseMessage response)
{
if (!response.IsSuccessStatusCode)
{
return;
}
For this in contradiction to what documentation says unless I am looking at the wrong class.
Appreciate your feedback.
Thanks
Hi, I need to extend the Permission class to add a new Property.
I have several forms created in the app. I have a permission per form who can submit.
Elsewhere, I want to list those forms, so I would query the user permissions and return the new Property I want to add. The new property would represent the Form Name.
Is this doable? Is there a better option?
Thanks