// //Home/Detail public async Task <ActionResult> Detail(String Id) { if (Id == String.Empty || Id == null || Id.Length != 24) { return(HttpNotFound()); } var model = await repository.GetItem(Id); return(View(model)); }