Beispiel #1
0
        // GET: Status/Create
        public async Task <IActionResult> Create()
        {
            var pessoa = await _pessoaService.FindAllAsync();

            var status = await _statusService.FindAllAsync();

            var viewModel = new OsFormViewModel {
                Pessoa = pessoa, Status = status
            };

            return(View(viewModel));
        }
        public async Task <IActionResult> Index()
        {
            var list = await _salesService.FindAllAsync();

            var clients = await _clientService.FindAllAsync();

            var status = await _statusService.FindAllAsync();

            var viewModel = new SalesFormViewModel {
                Clients = clients, Status = status
            };

            return(View(list));
        }
        public async Task <IActionResult> Index()
        {
            var list = await _statusService.FindAllAsync();

            return(View(list));
        }