Beispiel #1
0
        public ActionResult Edit(UserAccount ua)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    PopulateAccountTypesDropdown();
                    bll.Update(ua);
                    TempData["msg"] = "Updated successfully";
                }

                else
                {
                    TempData["msg"] = "Failed to update";
                }
                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }