Esempio n. 1
0
        public IActionResult BaseStructure(BaseFeeStructure model)
        {
            if (!ModelState.IsValid)
            {
                return(View(ModelState));
            }

            model.EditDate = DateTime.Now;
            model          = _repos.BaseFeeStructures.Update(model);
            _repos.Commit();

            return(RedirectToAction("basestructure"));
        }
Esempio n. 2
0
        public IActionResult BaseStructure()
        {
            var _base = _repos.BaseFeeStructures
                        .ListWith("PreparedBy", "PreparedBy.Profile")
                        .FirstOrDefault();

            if (_base == null)
            {
                _base = new BaseFeeStructure()
                {
                    AdminId = this.GetAccountId()
                };

                _base = _repos.BaseFeeStructures.Create(_base);
                _repos.Commit();
            }
            ViewBag.Notifications = this.GetNotifications();
            return(View(_base));
        }