Exemplo n.º 1
0
        public ActionResult Edit(BillViewModel billVM)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(View(billVM));
                }
                if (_billManager.Edit(billVM))
                {
                    return(RedirectToAction("Index"));
                }


                return(View(billVM));
            }
            catch (Exception e)
            {
                Logger.Instance.Error(e);
                return(View(new BillViewModel()));
            }
        }