public bool Create(BaoChiModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "baochi_create", "@ID_BBao", model.ID_BBao, "@Ten_BBao", model.Ten_BBao, "@Trang_BD", model.Trang_BD, "@Trang_KT", model.Trang_KT, "@ID_TapChi", model.ID_TapChi, "@ID_GV", model.ID_GV, "@TG_XB", model.TG_XB ); 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(BaoChiModel model) { return(_res.Update(model)); }
public bool Create(BaoChiModel model) { return(_res.Create(model)); }
public BaoChiModel UpdateUser([FromBody] BaoChiModel model) { _BaoChiBLL.Update(model); return model; }
public BaoChiModel CreateItem([FromBody] BaoChiModel model) { model.ID_BBao = Guid.NewGuid().ToString(); _BaoChiBLL.Create(model); return model; }