public RestarauntAllData CreateRestarauntAllData(Restaraunt restaraunt, RestarauntLang restLang)
 {
     RestarauntAllData result = new RestarauntAllData();
     result.Address = restLang.Address;
     result.Country = restLang.Country;
     result.Locality = restLang.Locality;
     result.Region = restLang.Region;
     result.Review = restLang.Review;
     result.Name = restLang.Name;
     result.Longitude = restaraunt.Longitude;
     result.Latitude = restaraunt.Latitude;
     result.KitchenRate = restaraunt.KitchenRate;
     result.InteriorRate = restaraunt.InteriorRate;
     result.MaintenanceRate = restaraunt.MaintenanceRate;
     result.RestarauntType = restaraunt.RestarauntType;
     result.AddedDate = restaraunt.AddedDate;
     result.Images = imageRepository.GetRestarauntImages(restaraunt.RestarauntID);
     return result;
 }
 public void SaveRestarauntLang(RestarauntLang restarauntLang)
 {
     if (restarauntLang.RestarauntLangID == 0)
     {
         context.RestarauntLangs.Add(restarauntLang);
     }
     else
     {
         RestarauntLang dbEntry = context.RestarauntLangs.Find(restarauntLang.RestarauntLangID);
         if (dbEntry != null)
         {
             dbEntry.Name = restarauntLang.Name;
             dbEntry.Region = restarauntLang.Region;
             dbEntry.Locality = restarauntLang.Locality;
             dbEntry.Country = restarauntLang.Country;
             dbEntry.Address = restarauntLang.Address;
             dbEntry.Review = restarauntLang.Review;
             dbEntry.RestarauntID = restarauntLang.RestarauntID;
             dbEntry.LanguageID = restarauntLang.LanguageID;
         }
     }
     context.SaveChanges();
 }