public async Task <ActionResult> ApproveByMaster(ClaimOperationViewModel viewModel) { var claim = await _claimsRepository.GetClaim(viewModel.ProjectId, viewModel.ClaimId); if (claim == null) { return(HttpNotFound()); } try { await _claimService.ApproveByMaster(claim.ProjectId, claim.ClaimId, viewModel.CommentText); return(ReturnToClaim(viewModel)); } catch (Exception exception) { ModelState.AddException(exception); return(await ShowClaim(claim)); } }