public async Task <ActionResult> ApproveByMaster(ClaimOperationViewModel viewModel)
        {
            var claim = await _claimsRepository.GetClaim(viewModel.ProjectId, viewModel.ClaimId);

            if (claim == null)
            {
                return(HttpNotFound());
            }

            try
            {
                await
                _claimService.AppoveByMaster(claim.ProjectId, claim.ClaimId, viewModel.CommentText);

                return(ReturnToClaim(viewModel));
            }
            catch (Exception exception)
            {
                ModelState.AddException(exception);
                return(await ShowClaim(claim));
            }
        }
        public async Task <ActionResult> ApproveByMaster(AddCommentViewModel viewModel)
        {
            var claim = await _claimsRepository.GetClaim(viewModel.ProjectId, viewModel.ClaimId);

            var error = AsMaster(claim);

            if (error != null)
            {
                return(error);
            }

            try
            {
                await
                _claimService.AppoveByMaster(claim.ProjectId, claim.ClaimId, CurrentUserId, viewModel.CommentText);

                return(RedirectToAction("Edit", "Claim", new { viewModel.ClaimId, viewModel.ProjectId }));
            }
            catch (Exception exception)
            {
                ModelState.AddException(exception);
                return(await ShowClaim(claim));
            }
        }