public bool Create(ChuDeModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "sp_chude_create", "@tenchude", model.tenchude); 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(ChuDeModel model) { return(_res.Update(model)); }
public bool Create(ChuDeModel model) { return(_res.Create(model)); }
public ChuDeModel UpdateChuDe([FromBody] ChuDeModel model) { _ChuDeBusiness.Update(model); return(model); }