public bool Update(TapChiModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "tapchi_update", "@ID_TapChi", model.ID_TapChi, "@ID_Loai", model.ID_Loai, "@Ten_TapChi", model.Ten_TapChi, "@DonVi", model.DonVi, "@QuocGia", model.QuocGia); 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(TapChiModel model) { return(_res.Update(model)); }
public bool Create(TapChiModel model) { return(_res.Create(model)); }
public TapChiModel UpdateUser([FromBody] TapChiModel model) { _TapChiBLL.Update(model); return(model); }
public TapChiModel CreateItem([FromBody] TapChiModel model) { _TapChiBLL.Create(model); return(model); }