Example #1
0
        public ActionResult AddUnit(AddPropertyVM model)
        {
            if (Session["UserName"] == null)
            {
                return(RedirectToAction("Index", "Account"));
            }
            ViewBag.ReportTitle = "Add New unit";

            //var selectedRoles = model.Roles.Where(x => x.IsChecked).Select(x => x.ID).ToList();
            //var selectedCompanies = model.Companies.Where(x => x.IsChecked).Select(x => x.ID).ToList();
            PropertyManager.AddUnit(model);
            return(RedirectToAction("Index"));
        }