public RestaurantDS Update(RestaurantDS updatedrds)
        {
            var restSingle = rest.FirstOrDefault(r => r.Id == updatedrds.Id);

            if (restSingle != null)
            {
                restSingle.Name     = updatedrds.Name;
                restSingle.Location = updatedrds.Location;
                restSingle.Type     = updatedrds.Type;
            }
            return(restSingle);
        }
        public RestaurantDS Update(RestaurantDS updatedrds)
        {
            var restSingle = rest.FirstOrDefault(r => r.RowKey == updatedrds.RowKey);

            if (restSingle != null)
            {
                restSingle.Name     = updatedrds.Name;
                restSingle.Location = updatedrds.Location;
                restSingle.Type     = updatedrds.Type;
            }
            tm.CreateOrUpdate(restSingle);
            return(restSingle);
        }
 public RestaurantDS Add(RestaurantDS newRest)
 {
     rest.Add(newRest);
     return(newRest);
 }
 public RestaurantDS Add(RestaurantDS newRest)
 {
     rest.Add(newRest);
     tm.CreateOrUpdate(newRest);
     return(newRest);
 }