public string addRating(string id, string rating)
 {
     using (PointOfInterestRepository repository = new PointOfInterestRepository())
     {
         return(repository.addRating(id, rating));
     }
 }
 public PointOfInterest GetPOIByCountry(string country)
 {
     using (PointOfInterestRepository repository = new PointOfInterestRepository())
     {
         var data = repository.GetPOIByCountry(country);
         var temp = new List <PointOfInterest>();
         foreach (var row in data)
         {
             temp.Add(new PointOfInterest()
             {
                 CityName     = row.CityName,
                 CountryName  = row.CountryName,
                 ZipCode      = row.ZipCode.ToString(),
                 CreatedBy    = row.CreatedBy,
                 CreatedDate  = row.CreatedDate.ToShortDateString(),
                 CurrencyId   = row.CurrencyId,
                 Id           = row.Id,
                 Image        = @"http://qutaibamustafa.eastus.cloudapp.azure.com/POIImages/" + row.Image,
                 ModifiedBy   = row.ModifiedBy,
                 ModifiedDate = row.ModifiedDate?.ToShortDateString(),
                 Name         = row.Name,
                 Starts       = row.Starts
             });
         }
         Random rnd = new Random();
         int    r   = rnd.Next(temp.Count);
         return(temp[r]);
     }
 }
 public string getCurrency2(PointOfInterest model)
 {
     using (PointOfInterestRepository repository = new PointOfInterestRepository())
     {
         var data = repository.getCurrencySlug(model.CurrencyId);
         return(data);
     }
 }