public Task <HttpResponseMessage> Get(int id) { var request = new GetCategoryRequest { CategoryId = id }; return(_CategoryService.GetCategoryAsync(request).ContinueWith(resp => { var message = resp.Result; var viewModel = _Mapper.Map <CategoryViewModel>(message.Category); return _ResponseMapper.ForGet(Request, viewModel, message.Result); })); }
public Task <HttpResponseMessage> Get(int id) { var request = new GetStatusRequest { StatusId = id }; return(_StatusService.GetStatusAsync(request).ContinueWith(resp => { var message = resp.Result; var viewModel = _Mapper.Map <StatusViewModel>(message.Status); return _ResponseMapper.ForGet(Request, viewModel, message.Result); })); }