Example #1
0
 public async Task <IActionResult> GetById(Guid id)
 {
     try
     {
         return(Ok(await _couponService.FindByCondition(id)));
     }
     catch (Exception e)
     {
         _loggerManager.LogError($"Ocurrio un error al obtener el coupon: {e}");
         throw new ApiException(AppResources.BadRequest, HttpStatusCode.BadRequest);
     }
 }