public virtual ActionResult Submit(StyleLocationViewModel model) { LogI("Submit, model=" + model); //Save if (ModelState.IsValid) { model.Apply(Db, StyleHistoryService, Time.GetAppNowTime(), AccessManager.UserId); var outputModel = StyleCountingViewModel.GetAll(Db, new StyleSearchFilterViewModel() { StyleId = model.StyleId }).FirstOrDefault(); return(Json(new UpdateRowViewModel(outputModel, "Styles", new[] { "Locations", "MainLocation", "HasLocation", }, false))); } return(View(PopupContentView, model)); }
public virtual ActionResult EditStyleLocation(long styleId) { LogI("EditStyleLocation, id=" + styleId); var model = new StyleLocationViewModel(Db, styleId, Time.GetAppNowTime()); ViewBag.PartialViewName = PopupContentView; return(View("EditEmpty", model)); }