示例#1
0
 public Product GetById(EntityGetByIdReq req)
 {
     return(req.IsNotNull()
         ? Map(Db.Products.FirstOrDefault(x => x.Id == req.Id))
         : null);
 }
 public Reservation GetById(EntityGetByIdReq req)
 {
     return(req.IsNotNull()
         ? Map(Db.Reservations.FirstOrDefault(x => x.Id == req.Id))
         : null);
 }