public ActionResult DoAction(Guid? id, string type = null, DateTime? expires = null) { var thing = GetThingOrThrow(id); // init model var model = new PlaceThing(application, type); if (expires.HasValue) model.ExpiredOn = expires.Value.Date; return View("Test/Model", model); }
public ActionResult DoAction(Guid?id, string type = null, DateTime?expires = null) { var thing = GetThingOrThrow(id); // init model var model = new PlaceThing(application, type); if (expires.HasValue) { model.ExpiredOn = expires.Value.Date; } return(View("Test/Model", model)); }