Exemplo n.º 1
0
        public async Task <IActionResult> Create()
        {
            ViewBag.success  = false;
            ViewBag.clientes = await _repositoryClient.GetAll();

            return(PartialView());
        }
Exemplo n.º 2
0
        public IEnumerable <Client> GetAll(
            string name,
            string gender,
            Guid?cityGUID,
            Guid?regionGUID,
            DateTime?lastPurchaseFrom,
            DateTime?lastPurchaseTo,
            Guid?classificationGUID,
            Guid?sellerGUID)
        {
            try
            {
                IEnumerable <Client> listClient =
                    _repositoryClient.GetAll(
                        name,
                        gender,
                        cityGUID,
                        regionGUID,
                        lastPurchaseFrom,
                        lastPurchaseTo,
                        classificationGUID,
                        sellerGUID);

                return(listClient);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 3
0
        // GET: Client
        public async Task <ActionResult> Index()
        {
            var client = await _repositoryClient.GetAll();

            if (HttpExtensionsValidate.IsAjaxRequest(Request))
            {
                return(PartialView("Index", client));
            }

            return(View(client));
        }