示例#1
0
        public ActionResult Save(string address, int yearbuilt, decimal listPrice, decimal monthlyRent, decimal gross)
        {
            PropertyData newProp = new PropertyData();

            newProp.Address     = address;
            newProp.YearBuilt   = yearbuilt;
            newProp.ListPrice   = listPrice;
            newProp.MonthlyRent = monthlyRent;
            newProp.GrossYield  = gross;

            UtilityMethods newUtilityMethod = new UtilityMethods();
            bool           status           = newUtilityMethod.AddProperty(newProp);

            return(View());
        }