protected ActionResult Update0(BookEfEntityModel model) { //entity.UpdatedAt = DateTime.Now; var responseEdit = BookEfBusinessLogic.Edit(model.ToEntity()); return(Json(responseEdit)); }
protected ActionResult Create0(BookEfEntityModel model) { //entity.CreatedAt = DateTime.Now; var responseInsert = BookEfBusinessLogic.Add(model.ToEntity()); return(Json(responseInsert)); }
protected ActionResult UpdateOnly0(BookEfEntityModel model) { var responseEdit = BookEfBusinessLogic.EditOnly(model.ToEntity(), x => x.Name, x => x.Price, x => x.Category, x => x.Author); return(Json(responseEdit)); }
public ActionResult Update(BookEfEntityModel model) { return(Update0(model)); }
public ActionResult Create(BookEfEntityModel model) { return(Create0(model)); }