Added IsParent property on the UserViewModel and AccountBindingModel classes for registering a parent or other user.
Every new user will be added to the role "User", when the IsParent property is true, the user will be added to the "Parent" role if not, it will be added to the "Begeleider" role.
Changed Create.cshtml to use bootstrap and added field for the IsParent property.
Added Name property to the DossierData model to represent the name of the person to which this dossier belongs.
Changed seed method to create default roles and assign roles to the default users.
Added client side validation scripts, unobtrusive validation included.
Added custom validation script jquery.validate.zumabluejay.js
Added bundleconfig for the validation scripts.
Added bundle to the _Layout.cshtml.
Added RequiredIf validation attribute. The field will be required when the given property contains one of the specified values.
Works also on the client-side.
Added Name property to the Dossier class, which indicates the name of the child who belongs to this dossier.
Added DossierName property with a RequiredIf attribute, used for setting the childs name when adding a dossier.
Added textbox for the DossierName property and enabled showing or hiding based on the value of the IsParent field.
Fixed bug when one of the enumerable properties was null.
When a user has been registered the user will be returned in JSON format.
Added route attributes to the controller and actions.
Added action to create a dossier.
When a new user has been registered as parent, a new dossier will be created with the specified DossierName (Child name).
When the optional parameter "roles" is set, watchers of a dossier will be included in the resulting model.
Added temporary fix for the DossierController on the WebApi where a context exception occurred.
Added override for the ToString() method to the User class (Model).
Added property Deleted to determine is a User has been deleted as, for example, a watcher on a dossier.
Added Put method to update a dossier.
Added method to update a dossier and remove synchronous wrappers because of possible deadlocks.
Added DossierController to List (Index), Edit or to view details about a dossier.
Added migration containing the OwnerId property, specifying the user id who "owns" the dossier.
Added OwnerId property to the Dossier class.
Included the OwnerId when creating a dossier or updating a dossier.
Added OwnerId property to the Convert::ToDossier method.
When creating a user as parent, the OwnerId property will be set.
Fixed problem with not being able to create a dossier, because of anonymous usage. Fixed by signing the user in after registering (Temporary).