public bool Create(TextoutModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "to_item_create", "@textoutid", model.textoutid, "@textinboxid", model.togroupacount, "@tostaff", model.tostaff, "@todepartment", model.todepartment, "@departmentid", model.departmentid, "@staffid", model.staffid); 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 Create(TextoutModel model) { return(_res.Create(model)); }
public bool Update(TextoutModel model) { return(_res.Update(model)); }
public TextoutModel UpdateAcount([FromBody] TextoutModel model) { _itemBusiness.Update(model); return(model); }
public TextoutModel CreateItem([FromBody] TextoutModel model) { _itemBusiness.Create(model); return(model); }