public List <PLDetail> GetTop10PLs()
        {
            var srcResult = SearchBO.GetTop10PLs();

            return(srcResult.ConvertAll <PLDetail>(
                       new Converter <BusinessEntities.Search.PLDetail, PLDetail>
                           (ConvertToPLDetail)));
        }
        public List <Location> GetTop10Cities()
        {
            var srcResult = SearchBO.GetTop10Cities();

            return(srcResult.ConvertAll <Location>(
                       new Converter <BusinessEntities.Search.Location, Location>
                           (ConvertToSrcLocation)));
        }
        public List <AreaOfPractise> GetTop10AOPs()
        {
            var srcResult = SearchBO.GetTop10AOP();

            return(srcResult.ConvertAll <AreaOfPractise>(
                       new Converter <BusinessEntities.Search.AreaOfPractise, AreaOfPractise>
                           (ConvertToSrcAOP)));
        }
        public List <PLSearchResult> GetPLByCity(string CityName)
        {
            var query = new CGN.Paralegal.BusinessEntities.Search.PLSearchRequest();

            query.SearchQuery = String.Format("{0}:{1}", "AOP", CityName);
            var srcResult = SearchBO.GetParalegalByCity(query);

            return(srcResult.ConvertAll <PLSearchResult>(new Converter <CGN.Paralegal.BusinessEntities.Search.PLSearchResult, PLSearchResult>(ConvertToSearchResult)));
        }
Ejemplo n.º 5
0
 public IHttpActionResult CurrentBookingByStatus(int?status)
 {
     try
     {
         var bookingresult = new SearchBO().CurrentBookingByStatus(status);
         return(Ok(bookingresult));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }
Ejemplo n.º 6
0
 public IHttpActionResult BookingByDate(BookingSearchDTO booking)
 {
     try
     {
         var bookingresult = new SearchBO().BookingByDate(booking.dates.fromDate, booking.dates.toDate);
         return(Ok(bookingresult));
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }
Ejemplo n.º 7
0
        public ActionResult StartSearch(FormCollection form)
        {
            string   search = form["search_field"];
            SearchBO srchbo = new SearchBO();


            List <lawyer> Searchedlwr = srchbo.SearchLawyers(search);

            ViewBag.lawyers = Searchedlwr;

            List <law_catagry> Searchedlaws = srchbo.SearchLaws(search);

            ViewBag.laws = Searchedlaws;
            return(View());
        }
Ejemplo n.º 8
0
        public IHttpActionResult BookingHistorySearch(BookingSearchsDTO bookingDTO)
        {
            try
            {
                var bookingResult = new SearchBO().SearchBookingsHistory(
                    bookingDTO.Datefrom,
                    bookingDTO.DateTo);

                return(Ok(bookingResult));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
Ejemplo n.º 9
0
        public IHttpActionResult CurrentBookingSearch(BookingDTO bookingDTO)
        {
            try
            {
                var bookingResult = new SearchBO().SearchBookings(
                    bookingDTO.BookingNo, bookingDTO.BookingDate,
                    bookingDTO.VehicleGroup, bookingDTO.VehicleType,
                    bookingDTO.CustomerName, bookingDTO.VehicleNumber);

                return(Ok(bookingResult));
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
Ejemplo n.º 10
0
        public void VerifyIfTitleOfArticleContainsEnteredWord()
        {
            SearchBO search = new SearchBO(browser);

            BrowserFactory.NavigateTo(mainPageUrl);

            search.Header.EnterWordToFind(searchWord);
            Assert.IsTrue(search.Header.SearchBox.GetAttribute("value") == searchWord);


            search.SearchResultFrame.GoToTheFirstResult();
            Assert.IsTrue(search.ProductPage.Title.Text == "Смартфон Apple iPhone 7 32GB Black");

            search.ProductPage.CheckTitle(searchWord);
            Assert.IsTrue(search.ProductPage.Title.Text.Contains(searchWord));
        }
Ejemplo n.º 11
0
        public IHttpActionResult CurrentBookingList()
        {
            try
            {
                var BookingList = new SearchBO().GetList();

                if (BookingList != null)
                {
                    return(Ok(BookingList));
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }