public async Task <IHttpActionResult> GetDailyBookings(CarTeamSearchViewModel SearchModel) { List <CustomerBookingViewModel> data = new List <CustomerBookingViewModel>(); VerityResult result = new VerityResult(); result = JudgeUserIdentifyNameToVerityResult(); if (!result.IsOk) { return(ReturnResponseMessageResult(result, HttpStatusCode.Unauthorized)); } var user = await _authBLL.FindByName(User.Identity.Name); if (user != null) { int?queryGroupId = _usersService.GetGroupId(user.Id); if (queryGroupId.HasValue) { SearchModel.GroupId = queryGroupId.Value; } data = _bookingService.GetCustomerBookingList(SearchModel); } return(new ResponseMessageResult( Request.CreateResponse( HttpStatusCode.OK, data ))); }