Ejemplo n.º 1
0
        public async Task <IActionResult> RateRestaurant(
            [FromRoute] string id,
            [FromBody] RateRestaurantRequest request)
        {
            var identityUser = await _userManager.GetUserAsync(HttpContext.User);

            var command = new RateRestaurant(request.Stars, id, identityUser.Id);

            return((await _mediator.Send(command))
                   .Match(Ok, Error));
        }
 public virtual void RateRestaurant(RateRestaurant request)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 3
0
 public virtual void RateRestaurant(RateRestaurant request)
 {
     throw new System.NotImplementedException();
 }