public bool Create(VanbandiModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "vanbandi_create", "@vanbanid", model.vanbanid, "@ngaybanhanh", model.ngaybanhanh, "@tenloaivanban", model.tenloaivanban, "@tenphongban", model.tenphongban, "@noidung", model.noidung.Substring(12), "@user_id", model.user_id); if ((result != null && !string.IsNullOrEmpty(result.ToString())) || !string.IsNullOrEmpty(msgError)) { throw new Exception(Convert.ToString(result) + msgError); } return(true); } catch (Exception ex) { throw ex; } }
public VanbandiModel UpdateVanbandi([FromBody] VanbandiModel model) { _vanbanBusiness.Update(model); return(model); }
public bool Update(VanbandiModel model) { return(_res.Update(model)); }
public VanbandiModel CreateWork([FromBody] VanbandiModel model) { model.vanbanid = Guid.NewGuid().ToString(); _vanbanBusiness.Create(model); return(model); }
public bool Create(VanbandiModel model) { return(_res.Create(model)); }