Exemplo n.º 1
0
 // GET tables/Car/48D68C86-6EA6-4C25-AA33-223FC9A27959
 /// <summary>
 /// Gets the cars.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <returns>SingleResult&lt;Car&gt;.</returns>
 public SingleResult <Car> GetCar(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         throw new ArgumentException("The car not exist.");
     }
     if (!_context.Exist <Car>(id))
     {
         throw new ArgumentException("The car not exist.");
     }
     return(Lookup(id));
 }