public bool Create(TypetextModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "typetext_item_create", "@typetextid", model.typetextid, "@typetextname", model.typetextname, "@typetextdescription", model.typetextdescription, "@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 TypetextModel UpdateTypetext([FromBody] TypetextModel model) { _itemBusiness.Update(model); return(model); }
public TypetextModel CreateItem([FromBody] TypetextModel model) { _itemBusiness.Create(model); return(model); }
public bool Create(TypetextModel model) { return(_res.Create(model)); }
public bool Update(TypetextModel model) { return(_res.Update(model)); }