protected override async System.Threading.Tasks.Task <object> AddViewDataAsync(
            Models.Agenda.Reserva resource = null
            )
        {
            ViewData["LocalId"] = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(
                await _serviceLocal.GetAllAsync(),
                nameof(Models.Agenda.Local.Id),
                nameof(Models.Agenda.Local.Nome),
                resource?.LocalId);

            return(base.AddViewDataAsync(resource));
        }
        protected override async System.Threading.Tasks.Task <object> AddViewDataAsync(
            Models.Ecommerce.Product resource = null
            )
        {
            ViewData["CategoryId"] = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(
                await _categoryService.GetAllAsync(),
                nameof(Models.Ecommerce.Product.CategoryId),
                nameof(Models.Ecommerce.Product.Name),
                resource?.CategoryId);
            ViewData["SupplierId"] = new Microsoft.AspNetCore.Mvc.Rendering.SelectList(
                await _supplierService.GetAllAsync(),
                nameof(Models.Ecommerce.Supplier.SupplierId),
                nameof(Models.Ecommerce.Supplier.Name),
                resource?.SupplierId);

            return(base.AddViewDataAsync(resource));
        }
 protected virtual async System.Threading.Tasks.Task <System.Collections.Generic.IEnumerable <TEntity> > GetAll() => await Service.GetAllAsync();