public ActionResult Search(SearchModel model)
        {
            try
            {
                IEnumerable<Model.RepairCard> cards = null;
                if (!string.IsNullOrEmpty(model.RegistrationNumber))
                {
                    cards = RepairsManager.GetManager().Get()
                        .Where(x => x.Car.RegistrationNumber.Contains(model.RegistrationNumber));

                }
                if (!string.IsNullOrEmpty(model.FrameNumber))
                {
                    cards =  RepairsManager.GetManager().Get()
                        .Where(x => x.Car.FrameNumber.Contains(model.FrameNumber));
                }

                var cardsModel = MappingManager.Instance.Map<IEnumerable<Model.RepairCard>, IEnumerable<RepairCardModel>>(cards);

                var pageModel = new PagingModel(cardsModel.Count());
                pageModel.ItemsOnPage = 15;
                pageModel.PageNumber = 1;
                pageModel.PageContent = cardsModel;

                return View("~/Views/Repairs/Index.cshtml", pageModel);
            }
            catch (Exception ex)
            {
                return View(model);
            }
        }
        public ActionResult Index()
        {
            ViewBag.Message = "Car service management system.";

            var model = new SearchModel();

            return View(model);
        }