public ActionResult Edit(TypeJobsName typeJobName) { if (ModelState.IsValid) { _unitOfWork.TypeJobsNameRepository.Edit(typeJobName); return(RedirectToAction("Index", "TypeJobName")); } return(View(typeJobName)); }
public ActionResult Create(FormCollection typeJobName) { var job = typeJobName["TypeJobName"]; var model = new TypeJobsName() { TypeJobName = job }; if (ModelState.IsValid) { _unitOfWork.TypeJobsNameRepository.Add(model); return(RedirectToAction("Index", "TypeJobName")); } return(View(model)); }
// GET: TypeJobName/Create public ActionResult Create() { var typeJobName = new TypeJobsName(); return(View(typeJobName)); }