Ejemplo n.º 1
0
        public ActionResult EditPropFinance(string returnUrl, int?propId)
        {
            var user       = User.Identity.Name;
            var login      = AccountService.GetLoginByEmail(user);
            var properties = PropertyService.GetPropertiesAndAddress(login.Id, propId).ToList();

            properties.ForEach(x => x.AddressString = x.Address.ToAddressString());
            var model = new PropDataModel
            {
                ReturnUrl  = returnUrl,
                Properties = properties
            };

            return(View(model));
        }
Ejemplo n.º 2
0
        public ActionResult AddTenantDashBoard(int?propId, string returnUrl)
        {
            var freqs = PropertyOwnerService.GetAllPaymentFrequencies();

            ViewBag.Frequencies = freqs;
            var user       = User.Identity.Name;
            var login      = AccountService.GetLoginByEmail(user);
            var properties = PropertyService.GetPropertiesAndAddress(login.Id, propId).ToList();

            properties.ForEach(x => x.AddressString = x.Address.ToAddressString());
            var model = new PropDataModel
            {
                ReturnUrl  = returnUrl,
                Properties = properties
            };

            ViewBag.ReturnUrl = returnUrl ?? "/PropertyOwners/Home/Dashboard";
            return(View(model));
        }