Exemple #1
0
 public ActionResult Edit([Bind(Include = "CompanyProfileID,UserID,PersonName,PersonContact,Category,Address,City,OfficeContact,GroupOfCompany,OwnerName,HRHead,CompanyWebsite,NoOfOffices,Fax,LogoName,Logo,OperatingSince,NoOfEmployees,OwnershipType,verified")] CompanyProfile companyProfile)
 {
     if (ModelState.IsValid)
     {
         db.Entry(companyProfile).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index", "CompanyDashboard"));
     }
     return(View(companyProfile));
 }
 public ActionResult Edit([Bind(Include = "EmpProfileID,FirstName,LastName,Gender,DOB,University,City,Nationality,CNIC,Contact,Address,UserID")] EmpProfile empProfile)
 {
     if (ModelState.IsValid)
     {
         db.Entry(empProfile).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index", "Dashboard"));
     }
     return(View(empProfile));
 }
 public ActionResult Edit([Bind(Include = "CompanyJobPostID,Industry,FunctionArea,TotalPosition,JobType,JobLocation,Gender,Age,MinimumEducation,DegreeTitle,CareerLevel,ApplyBy,JobPostingDate,JobDescription,CompanyProfileID")] CompanyJobPost companyJobPost)
 {
     if (ModelState.IsValid)
     {
         db.Entry(companyJobPost).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CompanyProfileID = new SelectList(db.CompanyProfiles, "CompanyProfileID", "UserID", companyJobPost.CompanyProfileID);
     return(View(companyJobPost));
 }
 public ActionResult Edit([Bind(Include = "EmpSkillID,SkillTitle,Category,Usage,EmpProfileID")] EmpSkill empSkill)
 {
     if (ModelState.IsValid)
     {
         db.Entry(empSkill).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmpProfileID = new SelectList(db.EmpProfiles, "EmpProfileID", "FirstName", empSkill.EmpProfileID);
     return(View(empSkill));
 }
 public ActionResult Edit([Bind(Include = "EmpWorkExperienceID,ExperienceType,JobTitle,Category,Company,StartDate,EndDate,Current,Salary,EmpProfileID")] EmpWorkExperience empWorkExperience)
 {
     if (ModelState.IsValid)
     {
         db.Entry(empWorkExperience).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmpProfileID = new SelectList(db.EmpProfiles, "EmpProfileID", "FirstName", empWorkExperience.EmpProfileID);
     return(View(empWorkExperience));
 }
 public ActionResult Edit([Bind(Include = "CompanyJobPostID,EmpProfileID")] JobApplication jobApplication)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jobApplication).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CompanyJobPostID = new SelectList(db.CompanyJobPosts, "CompanyJobPostID", "JobDescription", jobApplication.CompanyJobPostID);
     ViewBag.EmpProfileID     = new SelectList(db.EmpProfiles, "EmpProfileID", "UserID", jobApplication.EmpProfileID);
     return(View(jobApplication));
 }
Exemple #7
0
 public ActionResult Edit([Bind(Include = "EmpProfileID,SchoolName,SchoolYearPassing,SchoolDegree,CollegeName,CollegeYearPassing,CollegeDegree,UniverstyName,DepartmentName,UniverstyYearPassing,GPA,Description")] Qualification qualification)
 {
     if (ModelState.IsValid)
     {
         db.Entry(qualification).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index", "Dashboard"));
     }
     ViewBag.EmpProfileID = new SelectList(db.EmpProfiles, "EmpProfileID", "UserID", qualification.EmpProfileID);
     //return View(qualification);
     return(RedirectToAction("Index", "Dashboard"));
 }
        public ActionResult Edit([Bind(Include = "CompanyProfileID,PhotoName,PhotoContent")] CompanyLogo companyLogo, HttpPostedFileBase upload)
        {
            if (ModelState.IsValid)
            {
                if (upload != null && upload.ContentLength > 0)
                {
                    companyLogo.PhotoName = System.IO.Path.GetFileName(upload.FileName);
                    byte[] data = new byte[upload.ContentLength];
                    upload.InputStream.Read(data, 0, upload.ContentLength);

                    companyLogo.PhotoContent = data;
                }
                db.Entry(companyLogo).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index", "CompanyDashboard"));
            }
            ViewBag.CompanyProfileID = new SelectList(db.CompanyProfiles, "CompanyProfileID", "UserID", companyLogo.CompanyProfileID);
            return(View(companyLogo));
        }