コード例 #1
0
 public RestaurantOwnerDto GetByUsernameAndPassword(RestaurantOwnerLoginDto model)
 {
     return(_mapper.Map <RestaurantOwnerDto>(
                _context.RestaurantOwners
                .Include(x => x.Restaurant)
                .ThenInclude(x => x.Category)
                .Single(x => (x.Username == model.Username) && (x.Password == model.Password))
                ));
 }
コード例 #2
0
 public ActionResult <RestaurantOwnerDto> GetByUsernameAndPassword(RestaurantOwnerLoginDto model)
 {
     return(_restaurantOwnerService.GetByUsernameAndPassword(model));
 }