public ActionResult AdvancedSearch(AdvancedSearchAndPhotos model) { var photoForSearch = new Photo(); photoForSearch.Name = model.AdvancedSearch.Name; photoForSearch.Description = model.AdvancedSearch.Description; photoForSearch.ShutterSpeed = model.AdvancedSearch.ShutterSpeed; photoForSearch.Flash = model.AdvancedSearch.Flash; photoForSearch.Diaphragm = model.AdvancedSearch.Diaphragm; var searchedItem = new AdvancedSearchAndPhotos(); searchedItem.Photos = _service.AdvancedSearch(photoForSearch); return(View("AdvancedSearchResults", searchedItem)); }