public ActionResult AppliedPost(int PostId, int FkClientID) { JobsInterested jobs = new JobsInterested(); jobs.FkClientID = FkClientID; jobs.FkJobsPostId = PostId; jobs.PhotoGrapherId = PhotoGrapherID; var result = jb.AddJobInterest(jobs); //if (result == true){ // RedirectToAction("Index"); //} //else //{ // RedirectToAction("Jobs"); //} return(RedirectToAction("JobApplied", "PhotoGrapher")); }
//Job Interest Add public bool AddJobInterest(JobsInterested Interest) { Db.Set <JobsInterested>().Add(Interest); Db.SaveChanges(); return(true); }