public ActionResult Edit(CreateEditViewModel model) { var job = jobProvider.GetJob(model.Id); Mapper.DynamicMap(model, job); jobProvider.UpdateJob(job); var jsonViewModel = new AjaxViewModel(true, null, null); return(Json(jsonViewModel)); }
public ActionResult Edit(CreateEditViewModel model) { var job = jobProvider.GetJob(model.Id); Mapper.DynamicMap(model, job); jobProvider.UpdateJob(job); var jsonViewModel = new AjaxViewModel(true, null, null); return(Json(jsonViewModel)); }