public ActionResult AssignUserRole(int id, int role, String password) { UserModels user = new UserModels(); user.Cedula = id; user.Role.IdRole = role; user.Password = password; SecurityBusiness securityBusiness = new SecurityBusiness(); securityBusiness.AssignUserRole(user); return(Json("Exitoso")); }