public ActionResult Create([Bind(Include = "Name,Password,Emailid,MobileNo,Location,photo,Position,Experience,PreferredJobLocation,Skills,Dateofapplication,Resume")] JobSeeker jobSeeker) { if (ModelState.IsValid) { db.JobSeekers.Add(jobSeeker); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jobSeeker)); }
public ActionResult Create([Bind(Include = "Name,status")] Approved approved) { if (ModelState.IsValid) { db.Approveds.Add(approved); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(approved)); }
public ActionResult Create([Bind(Include = "Name,Password,Emailid,MobileNo,LocationOfTheOpenings,photo,Designation,CurrentOpenings,Experience,EmployerClients,Skills,Updated")] Employer employer) { if (ModelState.IsValid) { db.Employers.Add(employer); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(employer)); }
public ActionResult Create([Bind(Include = "Jobid,Designation,Company,ComapnyName,Salary")] Job job) { if (ModelState.IsValid) { db.Jobs.Add(job); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(job)); }
public ActionResult Register(Firsttimeuser newuser) { OnlineRecrutimentModel tr = new OnlineRecrutimentModel(); if (ModelState.IsValid) { Firsttimeuser obj = new Firsttimeuser() { UserId = newuser.UserId, Name = newuser.Name, MobileNo = newuser.MobileNo, TelNo = newuser.TelNo, Address = newuser.Address, Emailid = newuser.Emailid, Password = newuser.Password }; tr.Firsttimeusers.Add(obj); tr.SaveChanges(); return(RedirectToAction("Login", "Login")); } return(View(newuser)); }