public bool Update(Loai_TapChiModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "Loai_TapChi_update", "@ID_LoaiTC", model.ID_LoaiTC, "@Ten_Loai", model.Ten_Loai ); 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 Loai_TapChiModel UpdateUser([FromBody] Loai_TapChiModel model) { _Loai_TapChiBLL.Update(model); return(model); }
public bool Update(Loai_TapChiModel model) { return(_res.Update(model)); }
public Loai_TapChiModel CreateItem([FromBody] Loai_TapChiModel model) { _Loai_TapChiBLL.Create(model); return(model); }
public bool Create(Loai_TapChiModel model) { return(_res.Create(model)); }