public RoleDto GetById(int?ID) { RoleDto lstrole = _roleDal.GetById(ID); return(lstrole); }
public Role GetById([FromRoute] int id) { return(roleDal.GetById(id)); }
//根据指定id获取 public RoleModel GetById(int id) { return(dal.GetById(id)); }