using System;
using System.Web.Mvc;
using Razor.Models;

namespace Razor.Controllers
{
    public class ProductController : Controller
    {
        public ActionResult Index()
        {
            Product myProduct = new Product
            {
                ProductID = 1,
                Name = "Kajak",
                Description = "Jednoosobowa łódka",
                Category = "Sporty wodne",
                Price = 275M
            };
            ViewBag.ProcessingTime = DateTime.Now.ToShortTimeString();
            return View(myProduct);
        }
    }
}
