public SqrResponse <long> AddActionInfo(ActionInfo model) { var id = _BllActionInfo.Add(model); if (id > 0) { return(SqrResponse <long> .Ok(id)); } return(SqrResponse <long> .Fail()); }
public SqrResponse <bool> DeleteActionInfo(long id) { return(SqrResponse <bool> .Ok(_BllActionInfo.Delete(id) > 0)); }
public SqrResponse <bool> UpdateActionInfo(ActionInfo model) { return(SqrResponse <bool> .Ok(_BllActionInfo.Update(model) > 0)); }
public SqrResponse <ActionInfo> GetActionInfo(long id) { return(SqrResponse <ActionInfo> .Ok(_BllActionInfo.GetById(id))); }
public SqrResponse <List <GetMenuListOutput> > GetAllMenu() { return(SqrResponse <List <GetMenuListOutput> > .Ok(_BllMenu.GetAllMenu())); }
public SqrResponse <List <GetMenuListOutput> > GetMenuList(long accountId, string systemId) { return(SqrResponse <List <GetMenuListOutput> > .Ok(_BllMenu.GetMenuList(accountId, systemId))); }