public ActionResult Create(string user, string names, string lastnames, string password, string email) { UsersDTO userDTO = new UsersDTO() { User = user, UserNames = names, UsersLastNames = lastnames, Email = email, Password = password, IsActive = true }; var result = userBL.Create(userDTO); return Json(result, JsonRequestBehavior.AllowGet); }
public ActionResult Update(int id, string user, string names, string lastnames, string email, bool isActive) { UsersDTO userDTO = new UsersDTO() { Id = id, User = user, UserNames = names, UsersLastNames = lastnames, Email = email, IsActive = isActive }; var result2 = userBL.Update(userDTO); return Json(new Asteri.Lib.DTO.Response() { Result = Asteri.Lib.DTO.Response.Results.success, Message = "User don't Exists" }, JsonRequestBehavior.AllowGet); }