public ActionResult WorkerProfile() { context = new ApplicationDbContext(); var model = new WorkerProfileViewModel(); return(PartialView()); }
public ActionResult WorkerProfile(WorkerProfileViewModel model) { if (!ModelState.IsValid) { return(PartialView(model)); } var worker = new Workers { nickName = model.NickName, fullName = model.FullName }; return(PartialView(model)); }