public bool Create(OwneradminModel model) { string msgError = ""; try { var result = _dbHelper.ExecuteScalarSProcedureWithTransaction(out msgError, "owneradmin_item_create", "@owneradminid", model.owneradminid, "@acountid", model.acountid, "@all1", model.all1, "@departmentreadonly", model.departmentreadonly, "@departmentmodify", model.departmentmodify, "@departmentdelate", model.departmentdelate, "@departmentcreat", model.departmentcreat, "@groupuseradmin", model.groupuseradmin, "@staffreadonly", model.staffreadonly, "@staffmodify", model.staffmodify, "@staffdelete", model.staffdelete, "@stafflreat", model.stafflreat, "@systemlogview", model.systemlogview, "@systemlogdelete", model.systemlogdelete ); 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(OwneradminModel model) { return(_res.Create(model)); }
public bool Update(OwneradminModel model) { return(_res.Update(model)); }
public OwneradminModel UpdateOwneradmin([FromBody] OwneradminModel model) { _itemBusiness.Update(model); return(model); }
public OwneradminModel CreateItem([FromBody] OwneradminModel model) { _itemBusiness.Create(model); return(model); }