Answer the question
In order to leave comments, you need to log in
viewbag. Mistake. What to do?
I do everything according to the video tutorial.
The tutorial uses VS 2010, I use Xamarin Studio
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Microsoft.CSharp;
using System.Dynamic;
namespace Hotel.Controllers
{
public class HomeController : Controller
{
public ViewResult Index()
{
ViewBag.VisitorNumber = new Random().Next(1, 100);
ViewBag.DateAndTime = DateTime.Now;
return View();
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question