public IEnumerable<Picture> Get()
        {
            var searchmodel = new AdvancedPictureSearch();
            searchmodel.Description = "bla-bla";
            searchmodel.Camera = "Nikon";
            searchmodel.Flash = true;
            searchmodel.ISO = 1300;

            //searchmodel.StartDate = new DateTime(2012, 01, 01);
            //searchmodel.FinishDate = new DateTime(2012, 05, 01);

            return unitOfWork.PictureRepository.Search(searchmodel);
        }
        public ViewResult AdvancedSearch(AdvancedSearchModel model)
        {
            if (ModelState.IsValid)
            {
                var searchModel = new AdvancedPictureSearch()
                {
                    Camera = model.Parameters.Camera,
                    Description = model.Parameters.Description,
                    StartDate = model.Parameters.StartDate,
                    FinishDate = model.Parameters.FinishDate,
                };

                model.ResultList = unitOfWork.PictureRepository.Search(searchModel);
            }
            return View(model);
        }