public virtual BLL.Models.Restaurant GetByID(int id)
 {
     BLL.Models.Restaurant r;
     try
     {
         r = RestaurantService.DataToLibrary(crud.GetById(id));
     }
     catch
     {
         throw;
     }
     return(r);
 }
 public virtual IEnumerable <BLL.Models.Restaurant> GetAll()
 {
     return(crud.GetAll().Select(x => RestaurantService.DataToLibrary(x)).ToList());
 }