public ApiMessage <bool> Edit(swiper model) { if (string.IsNullOrEmpty(model.ProductID)) { model.ProductID = ""; model.ProductName = ""; } if (string.IsNullOrEmpty(model.ID)) { model.ID = Guid.NewGuid().ToString(); model.CreateDate = DateTime.Now; model.Insert(); } else { model.CreateDate = DateTime.Now; model.Update(); } return(new ApiMessage <bool>() { Data = true }); }
public JsonResult Save(swiper model) { //var res= return(Json(bll.Edit(model))); }