public ViewResult RegisterEdit() { if (!LoginService.UserIsLogged(HttpContext)) { return(Register()); } User user = getViewModelUser.GetViewModel(a => a.Id == IdLoggedUser && a.Active); UserViewModel userViewModel = populateViewModelUser.PopulateViewModel(user); return(View(userViewModel)); }
public PartialViewResult GetByFilters(ProductsViewModel filters = null) { var productsViewModel = stockService.GetViewModel(filters); return(PartialView("_produtcts", productsViewModel)); }