Example #1
0
        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));
        }
Example #2
0
        public PartialViewResult GetByFilters(ProductsViewModel filters = null)
        {
            var productsViewModel = stockService.GetViewModel(filters);

            return(PartialView("_produtcts", productsViewModel));
        }