예제 #1
0
        public ActionResult Edit(string id)
        {
            try
            {
                #region " [ Declaration ] "

                AccountTypeService _service = new AccountTypeService();
                //
                ViewBag.id = id;

                #endregion

                //Call to service
                AccountTypeModel model = _service.GetItemByID(new AccountTypeModel()
                {
                    ID = new Guid(id), CreateBy = UserID, Insert = false
                });
                //
                return(View(model));
            }
            catch (ServiceException serviceEx)
            {
                throw serviceEx;
            }
            catch (DataAccessException accessEx)
            {
                throw accessEx;
            }
            catch (Exception ex)
            {
                throw new ControllerException(FILE_NAME, MethodInfo.GetCurrentMethod().Name, UserID, ex);
            }
        }