public bool Create(TextsModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "texts_item_create", "@textid", model.textid, "@typetextid", model.typetextid, "@isinternaldocuments", model.isinternaldocuments, "@departmentaddressid", model.departmentaddressid, "@datecreate", model.datecreate, "@signer", model.signer, "@textlevelid", model.textlevelid, "@needtreated", model.needtreated, "@isdeleted", model.isdeleted ); 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 TextsModel UpdateTexts([FromBody] TextsModel model) { _itemBusiness.Update(model); return(model); }
public bool Create(TextsModel model) { return(_res.Create(model)); }
public TextsModel CreateItem([FromBody] TextsModel model) { _itemBusiness.Create(model); return(model); }
public bool Update(TextsModel model) { return(_res.Update(model)); }