예제 #1
0
        public async Task <IActionResult> Edit(OrderModel model)
        {
            LoadData();
            try
            {
                await _appOrder.EditAsync(model);

                ViewBag.Success = true;
                ViewBag.Message = "Informações da Ordem editadas";
                return(View(model));
            }
            catch (Exception x)
            {
                ViewBag.Success = false;
                ViewBag.Message = x.Message;
                return(RedirectToAction("Index"));
            }
        }