public bool Update(SoHuu_TriTueModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "SoHuu_TriTue_update", "@ID_TriTue", model.ID_TriTue, "@Ten_TriTue", model.Ten_TriTue, "@ThoiGian", model.ThoiGian, "@DonVi_Cap", model.DonVi_Cap); 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(SoHuu_TriTueModel model) { return(_res.Update(model)); }
public SoHuu_TriTueModel UpdateUser([FromBody] SoHuu_TriTueModel model) { _SoHuu_TriTueBLL.Update(model); return(model); }
public bool Create(SoHuu_TriTueModel model) { return(_res.Create(model)); }
public SoHuu_TriTueModel CreateItem([FromBody] SoHuu_TriTueModel model) { model.ID_TriTue = Guid.NewGuid().ToString(); _SoHuu_TriTueBLL.Create(model); return(model); }