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)); }
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)); }