/// <summary>
 /// Creates all necessary data for Filter.ascx
 /// </summary>
 /// <param name="filter">User-defined filter from request</param>
 /// <param name="culture">Culture in "en-US" format</param>
 /// <returns>Model for Filter.ascx</returns>
 public static FilterModel CreateFilterModel(String filter, String tableDefinition, String culture)
 {
     FilterModel model = new FilterModel();
     model.LabelBeforeFilter = ResourcesHelper.GetText("LabelBeforeFilter", culture);
     model.Filter = filter;
     model.TableDefinition = tableDefinition;
     return model;
 }
 public ActionResult EditFilter(String tableDefinition, FilterModel model)
 {
     return RedirectToAction("Index", new {filter=model.Filter, tableDefinition=tableDefinition });
 }