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); }