private void SavePosition(Page newModel) { var json = Request.Form["PagePositionsJson"]; if (!string.IsNullOrEmpty(json)) { var positions = PageDesignController.ParsePagePositions(json); newModel.PagePositions = positions; } }
private bool SavePosition(Page newModel) { var json = Request.Form["PagePositionsJson"]; if (!string.IsNullOrEmpty(json)) { var positions = PageDesignController.ParsePagePositions(json); newModel.PagePositions = positions; return(true); } return(false); }