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