Ejemplo n.º 1
0
        public async Task <IHttpActionResult> GetOption(Guid id)
        {
            var response = await _productOptionService.GetById(id);

            if (!response.IsSuccess)
            {
                return(BadRequest(response.FailureReason));
            }

            if (response.Result == null)
            {
                return(NotFound());
            }

            return(Ok(response.Result));
        }