Пример #1
0
        public async Task <IHttpActionResult> GetAllAsync()
        {
            var result = await _pizzaService.GetAllAsync();

            return(result.IsSuccess ? Ok(result.Value) : (IHttpActionResult)StatusCode(HttpStatusCode.InternalServerError));
        }