public ActionResult CreateJob(JobPostViewModel viewModel) { if (!ModelState.IsValid) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } jobRepository.AddJobPosted(viewModel); unitOfWork.Save(); return(new HttpStatusCodeResult(HttpStatusCode.OK)); //return Json(); }