// GET: /AlbumDesc/Create
 public ActionResult Create(byte? languageId, byte? typeId)
 {
     ContentItem item = new ContentItem()
     {
        Time=DateTime.Now,
        Language=m_db.Languages.Find(languageId),
        ContentType = m_db.ContentTypes.Find(typeId)
     };
     ViewBag.Languages = m_db.Languages;
     ViewBag.Types = m_db.ContentTypes;
     return View(item);
 }
 public ActionResult Create(ContentItem item, string Time)
 {
     try
     {
         DateTime dt = DateTime.Parse(Time, CultureInfo.GetCultureInfo("en-GB"), System.Globalization.DateTimeStyles.AssumeLocal);
         item.Time = dt;
         item.Language = m_db.Languages.Find(item.Language.Id);
         item.ContentType = m_db.ContentTypes.Find(item.ContentType.Id);
         m_db.ContentItems.Add(item);
         m_db.SaveChanges();
         return RedirectToAction("Details", "ContentItem", new { id = item.Id });
     }
     catch (Exception ex)
     {
         ModelState.AddModelError("", ex.Message);
         ViewBag.Languages = m_db.Languages;
         ViewBag.Types = m_db.ContentTypes;
         return View(item);
     }
 }