public bool Create(SoVanBanModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, " sovanban_create", "@sovanbanid", model.sovanbanid, "@tensovanban", model.tensovanban, "@ghichu", model.ghichu); 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 bool Update(SoVanBanModel model) { return(_res.Update(model)); }
public SoVanBanModel UpdateSVB([FromBody] SoVanBanModel model) { _workBusiness.Update(model); return(model); }
public bool Create(SoVanBanModel model) { return(_res.Create(model)); }
public SoVanBanModel CreateSVB([FromBody] SoVanBanModel model) { model.sovanbanid = Guid.NewGuid().ToString(); _workBusiness.Create(model); return(model); }