Exemplo n.º 1
0
        public SqrResponse <long> AddActionInfo(ActionInfo model)
        {
            var id = _BllActionInfo.Add(model);

            if (id > 0)
            {
                return(SqrResponse <long> .Ok(id));
            }
            return(SqrResponse <long> .Fail());
        }
Exemplo n.º 2
0
 public SqrResponse <bool> DeleteActionInfo(long id)
 {
     return(SqrResponse <bool> .Ok(_BllActionInfo.Delete(id) > 0));
 }
Exemplo n.º 3
0
 public SqrResponse <bool> UpdateActionInfo(ActionInfo model)
 {
     return(SqrResponse <bool> .Ok(_BllActionInfo.Update(model) > 0));
 }
Exemplo n.º 4
0
 public SqrResponse <ActionInfo> GetActionInfo(long id)
 {
     return(SqrResponse <ActionInfo> .Ok(_BllActionInfo.GetById(id)));
 }
Exemplo n.º 5
0
 public SqrResponse <List <GetMenuListOutput> > GetAllMenu()
 {
     return(SqrResponse <List <GetMenuListOutput> > .Ok(_BllMenu.GetAllMenu()));
 }
Exemplo n.º 6
0
 public SqrResponse <List <GetMenuListOutput> > GetMenuList(long accountId, string systemId)
 {
     return(SqrResponse <List <GetMenuListOutput> > .Ok(_BllMenu.GetMenuList(accountId, systemId)));
 }