Merge from booking branch
This commit is contained in:
parent
25906d0227
commit
9a2652739b
266 changed files with 12833 additions and 2337 deletions
|
|
@ -104,5 +104,13 @@ namespace Yavsc.ApiControllers
|
|||
if (user != null && ModelState.IsValid)
|
||||
Url.SendActivationMessage (user);
|
||||
}
|
||||
|
||||
[ValidateAjax]
|
||||
[Authorize(Roles="Admin")]
|
||||
public void AddUserToRole(UserRole model)
|
||||
{
|
||||
Roles.AddUserToRole (model.UserName, model.Role);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue