public ActionResult updateRoles(RolesViewModel model)
 {
     if (ModelState.IsValid)
     {
         UserService.UserServiceClient client = new UserService.UserServiceClient();
         client.updateRoles(model.roles);
         client.DeleteRolePrivilege(model.roles.RoleId);
         client.insertRolePrivilege(model.roles.RoleId, model.PrivilegeId);
         return(View("_AddRole", model));
     }
     else
     {
         ModelState.AddModelError("", ConfigurationManager.AppSettings["Requried"]);
     }
     return(View("_AddRole", model));
 }