// GET: Business/Create public IActionResult Create() { Business business = new Business { Start_date = DateTime.Today, Exist = true, Interest = (decimal)Math.Round((new Random().NextDouble() * (0.9 - 0.1) + 0.1) / 10, 3), }; //create new business account DAL.CreateBusiness(business); return(RedirectToAction(nameof(Index))); }