public ActionResult NeedPhotoGrapher()
        {
            ClientJobsPost c = new ClientJobsPost();

            c.FkClientID = ClientID;

            return(View(c));
        }
        public ActionResult EditPost(ClientJobsPost upd)
        {
            if (ModelState.IsValid)
            {
                // up.ConfirmPassword = up.Password;

                jb.EditJobsPost(upd);



                return(RedirectToAction("Index"));
            }

            return(View(upd));
        }
        public ActionResult NeedPhotoGrapher(ClientJobsPost post)
        {
            if (ModelState.IsValid)
            {
                // up.ConfirmPassword = up.Password;

                jb.AddJobsPost(post);



                return(RedirectToAction("Index"));
            }

            return(View(post));
        }
 //Edit JobsPost
 public bool EditJobsPost(ClientJobsPost editPost)
 {
     Db.Entry(editPost).State = EntityState.Modified;
     Db.SaveChanges();
     return(true);
 }
 //Add Post
 public bool AddJobsPost(ClientJobsPost jobspost)
 {
     Db.Set <ClientJobsPost>().Add(jobspost);
     Db.SaveChanges();
     return(true);
 }