public async Task <ServiceResult> GetAll() { var res = new ServiceResult(); try { res.Data = baseBL.Query <BaseModel>("Select * From `task-info`", System.Data.CommandType.Text); }catch (Exception ex) { res.Success = false; throw; } return(res); }