public virtual ActionResult Manage(LossSearchFilter filter)
 {
     ViewBag.Types = GetTypes();
     filter.UserId = User.GetUserId();
     if (!Request.IsAjaxRequest())
     {
         return(View(_LossSrv.Get(filter)));
     }
     else
     {
         return(PartialView("Partials/_List", _LossSrv.Get(filter)));
     }
 }
 public virtual ActionResult Manage(LossSearchFilter filter)
 {
     ViewBag.WithoutAddButton = true;
     ViewBag.ExcelExport      = true;
     ViewBag.Types            = GetTypes();
     if (!Request.IsAjaxRequest())
     {
         return(View(_LossSrv.Get(filter)));
     }
     else
     {
         return(PartialView("Partials/_List", _LossSrv.Get(filter)));
     }
 }