Exemplo n.º 1
0
        public ActionResult Create([Bind(Include = "HRAssessmentID,TestId,StudentID,PresentationSkills,ProfessionalImpression,SelfManagement,CommunicationInterpersonalSkills,StressTolerance,DecisionMaking,Learnability,OrganizationalFit,Creative,Expert,Original,Candid,Intelligent,Driven,ValueTheIndividual,FocusOnCustomer,ActAsATeam,StriveForExcellence,ActWithIntegrity,Humble,Hungry,Smart,SignificantAchievements,PlansForFurtherStudies,CareerPlans,OverallRating,OverallComments,Recommendation,HighlyRecommended")] HRAssessment hRAssessment)
        {
            if (ModelState.IsValid)
            {
                AccountModel accountModel = new AccountModel();
                accountModel                = (AccountModel)Session["UserDetails"];
                hRAssessment.CreatedBy      = accountModel.Email;
                hRAssessment.CreatedDate    = DateTime.Now;
                hRAssessment.LastEditedBy   = accountModel.Email;
                hRAssessment.LastEditedDate = DateTime.Now;
                hRAssessment.IsSubmitted    = true;
                if (hRAssessment.HRAssessmentID > 0)
                {
                    db.Entry(hRAssessment).State = EntityState.Modified;
                }
                else
                {
                    db.HRAssessments.Add(hRAssessment);
                }
                db.SaveChanges();
                hRAssessment.SuccessMessage = "Feedback Recorded.";
                //return View(hRAssessment);
                return(RedirectToAction("Index", "CandidateDetails", new { successMessage = "true" }));
            }

            return(View(hRAssessment));
        }
Exemplo n.º 2
0
        public ActionResult Create([Bind(Include = "TechnicalAssessmentID,TestId,StudentID,Section1Rating,Section1Remarks,Section2Rating,Section2Remarks,Section3Rating,Section3Remarks,Section4Rating,Section4Remarks,Section5Rating,Section5Remarks,EPAMFit,OverallRemarks,OverallRating,AdditionalRemarks,AdditionalRating,HighlyRecommended")] TechnicalAssessment technicalAssessment)
        {
            if (ModelState.IsValid)
            {
                AccountModel accountModel = new AccountModel();
                accountModel = (AccountModel)Session["UserDetails"];
                technicalAssessment.CreatedBy      = accountModel.Email;
                technicalAssessment.CreatedDate    = DateTime.Now;
                technicalAssessment.LastEditedBy   = accountModel.FirstName;
                technicalAssessment.LastEditedDate = DateTime.Now;
                technicalAssessment.IsSubmitted    = true;
                if (technicalAssessment.TechnicalAssessmentID > 0)
                {
                    db.Entry(technicalAssessment).State = EntityState.Modified;
                }
                else
                {
                    db.TechnicalAssessments.Add(technicalAssessment);
                }
                db.SaveChanges();
                technicalAssessment.SuccessMessage = "Feedback Recorded.";
                //return View(technicalAssessment);
                return(RedirectToAction("Index", "CandidateDetails", new { successMessage = "true" }));
            }

            return(View(technicalAssessment));
        }
Exemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "CandidateID,CandidateName,CandidateLocationID,CandidateEmail,ContactNumber,CandidateResume,StartedOn,StartingTime,PreviousAssessments,Duration,MarksScored,Result,Report,PublicReport,FirstName,LastName,EmailAddress,MobileNumber,GraduationCollegeName,Graduation,GraduationSpecialty,YearOfPassedOut,GraduationMarksCGPA,C12MarksCGPA,C10MarksCGPA,Gender,PermanentAddress,PermanentStateOfResidence,CurrentAddress,GovernmentIssuedIDProof,PreferredJobLocation,CreatedBy,LastEditedBy")] Candidate_Details candidate_Details)
 {
     if (ModelState.IsValid)
     {
         db.Entry(candidate_Details).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(candidate_Details));
 }
 public ActionResult Edit([Bind(Include = "RoundID,RoundName,RoundKey,IsActive")] Recruitment_Rounds recruitment_Rounds)
 {
     if (ModelState.IsValid)
     {
         db.Entry(recruitment_Rounds).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(recruitment_Rounds));
 }
Exemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "GenderId,Gender")] Master_Gender master_Gender)
 {
     if (ModelState.IsValid)
     {
         db.Entry(master_Gender).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(master_Gender));
 }
 public ActionResult Edit([Bind(Include = "RecruitmentID,Name,Comments")] Recruitment recruitment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(recruitment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(recruitment));
 }
Exemplo n.º 7
0
 public ActionResult Edit([Bind(Include = "RoleId,RoleName,RoleKey")] Master_Roles master_Roles)
 {
     if (ModelState.IsValid)
     {
         db.Entry(master_Roles).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(master_Roles));
 }
Exemplo n.º 8
0
 public ActionResult Edit([Bind(Include = "UserId,UserName,Password,RoleId,FirstName,MiddleName,LastName,GenderId,Email,ContactNumber,Address,CollegeId,MarksScored,GraduationSpecialty,EmailAddressToSendNotifications,Active,CreatedBy,CreatedDate,LastEditedBy,LastEditedDate")] User user)
 {
     if (ModelState.IsValid)
     {
         db.Entry(user).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(user));
 }
Exemplo n.º 9
0
 public ActionResult Edit([Bind(Include = "MarksID,CandidateID,TestID,MCQs,CodingChallenge1,CodingChallenge2,CodingChallenge3,IsActive,CreatedBy,CreatedDate,LastEditedBy,LastEditedDate,MarksScored,Result,RoundType")] Candidate_Marks candidate_Marks)
 {
     if (ModelState.IsValid)
     {
         db.Entry(candidate_Marks).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(candidate_Marks));
 }
Exemplo n.º 10
0
 public ActionResult Edit([Bind(Include = "EmailRecipientID,FirstName,LastName,Email,CollegeId,Active")] EmailRecipient emailRecipient)
 {
     if (ModelState.IsValid)
     {
         db.Entry(emailRecipient).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(emailRecipient));
 }
Exemplo n.º 11
0
 public ActionResult Edit([Bind(Include = "TaskId,TaskName,TaskDescription,CreatedBy,CreatedDate,LastEditedBy,LastEditedDate,EstimatedCompletionDate")] Task task)
 {
     if (ModelState.IsValid)
     {
         db.Entry(task).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(task));
 }
Exemplo n.º 12
0
 public ActionResult Edit([Bind(Include = "CollegeID,CollegeName,IsActive")] College college)
 {
     if (ModelState.IsValid)
     {
         db.Entry(college).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(college));
 }
Exemplo n.º 13
0
 public ActionResult Edit([Bind(Include = "LocationID,Location")] Master_Locations master_Locations)
 {
     if (ModelState.IsValid)
     {
         db.Entry(master_Locations).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(master_Locations));
 }
Exemplo n.º 14
0
 public ActionResult Edit([Bind(Include = "GitRepositoryID,StudentID,RepositoryUrl,Status,ProjectName,CreatedBy,CreatedDate,LastEditedBy,LastEditedDate,TaskId,Comments")] Student_GitRepositories student_GitRepositories)
 {
     if (ModelState.IsValid)
     {
         db.Entry(student_GitRepositories).State = EntityState.Modified;
         db.SaveChanges();
         GitRepositoriesModel model = new GitRepositoriesModel();
         //model.GenerateJenkinsfile(student_GitRepositories.RepositoryUrl);
         return(RedirectToAction("Index"));
     }
     return(View(student_GitRepositories));
 }
 public ActionResult Edit([Bind(Include = "TestId,RecruitmentId,TestName,StartDate,EndDate,TotalScore,Duration,LocationId,TestKey,CutoffPercentage,WeightageOnSelection,CodingWeightageOnSelection1,TechnicalWeightageOnSelection,HRWeightageOnSelection")] TestsHosted testsHosted)
 {
     if (testsHosted.LocationId == 0)
     {
         ModelState.AddModelError("LocationId", "Please choose location");
     }
     if (testsHosted.RecruitmentId == 0)
     {
         ModelState.AddModelError("RecruitmentId", "Please choose Recruitment");
     }
     if (ModelState.IsValid)
     {
         db.Entry(testsHosted).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(testsHosted));
 }