public bool Create(TextinboxModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "textinbox_item_create", "@textinboxid", model.textinboxid, "@textid", model.textid, "@textcontent", model.textcontent, "@datee", model.datee, "@treaddate", model.treaddate, "@editdate", model.editdate ); 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 TextinboxModel UpdateTextinbox([FromBody] TextinboxModel model) { _itemBusiness.Update(model); return(model); }
public TextinboxModel CreateItem([FromBody] TextinboxModel model) { _itemBusiness.Create(model); return(model); }
public bool Create(TextinboxModel model) { return(_res.Create(model)); }
public bool Update(TextinboxModel model) { return(_res.Update(model)); }