public async Task <HttpResponseMessage> GetExplanationCreatorList(HttpRequestMessage request, string userId, string groupId) { return(await CreateHttpResponse(request, () => { if (string.IsNullOrEmpty(userId) || string.IsNullOrEmpty(groupId)) { return request.CreateErrorResponse(HttpStatusCode.BadRequest, MessageSystem.NoValues); } var model = _explanationRequestService.GetListCreator(userId, groupId); List <AppUserViewModel> userModel = new List <AppUserViewModel>(); foreach (var user in model) { userModel.Add(new AppUserViewModel { Id = user.Id, FullName = user.FullName }); } return request.CreateResponse(HttpStatusCode.OK, userModel); })); }