Esempio n. 1
0
        public RoleDto GetById(int?ID)
        {
            RoleDto lstrole = _roleDal.GetById(ID);

            return(lstrole);
        }
 public Role GetById([FromRoute] int id)
 {
     return(roleDal.GetById(id));
 }
Esempio n. 3
0
 //根据指定id获取
 public RoleModel GetById(int id)
 {
     return(dal.GetById(id));
 }