protected ActionResult Update0(AdminUserEntityModel model) { //entity.UpdatedAt = DateTime.Now; var responseEdit = AdminUserBusinessLogic.Edit(model.ToEntity()); return(Json(responseEdit)); }
protected ActionResult Create0(AdminUserEntityModel model) { //entity.CreatedAt = DateTime.Now; var responseInsert = AdminUserBusinessLogic.Add(model.ToEntity()); return(Json(responseInsert)); }
public ActionResult Update(AdminUserEntityModel model) { model.Id = MainTokenData.UserId; var responseEdit = AdminUserBusinessLogic.EditOnly(model.ToEntity(), x => x.Name, x => x.Pass, x => x.Language, x => x.Theme ); return(Json(responseEdit)); }
protected ActionResult UpdateOnly0(AdminUserEntityModel model) { var responseEdit = AdminUserBusinessLogic.EditOnly(model.ToEntity(), x => x.No, x => x.Name, x => x.Email, x => x.Status, x => x.IsSuper); return(Json(responseEdit)); }
public ActionResult Update(AdminUserEntityModel model) { var response = AdminUserBusinessLogic.Upsert(model.ToEntity()); return(Json(response)); }