public async Task <ActionResult> UpdateFeedback(EmployeeViewModel employeeViewModel)
        {
            var activeAppraisalProces = _appraisalProcessDa.GetActiveAppraisalSeason();
            var name = string.Concat(employeeViewModel.AssociateName + "-" + employeeViewModel.PeerName + "-" + activeAppraisalProces.Name);

            var path = await _fileService.UploadFile(employeeViewModel.FeedbackDocument, name, activeAppraisalProces.Name);

            employeeViewModel.FeedbackDocumentUrl = path;
            var peer = AutoMapper.Mapper.Map <Peer>(employeeViewModel);

            _peersDa.UpdatePeer(peer);
            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> UpdateFeedback(Guid feedbackFor, string feedbackForName, Guid feedbackFrom, string feedbackFromName, HttpPostedFileBase file, int peerAssociateId, bool shareWithPeer)
        {
            var activeAppraisalProces = _appraisalSeasonDa.GetActiveAppraisalSeason();
            //var name = string.Concat(feedbackForName + "-" + feedbackFromName + "-" + activeAppraisalProces.Name);
            var ext  = Path.GetExtension(file.FileName);
            var name = $"[{activeAppraisalProces.Name}]-for-[{feedbackForName}]-from-[{feedbackFromName}]{ext}";

            var path = await _fileService.UploadFile(file, name, activeAppraisalProces.Name);

            var peer = _peersDa.GetByPeerAssociateId(peerAssociateId);

            peer.FeedbackDocumentUrl        = path;
            peer.ShareFeedbackWithAssociate = shareWithPeer;
            _peersDa.UpdatePeer(peer);
            return(RedirectToAction("Index"));
        }