public async Task <IHttpActionResult> GetAllAsync() { var result = await _pizzaService.GetAllAsync(); return(result.IsSuccess ? Ok(result.Value) : (IHttpActionResult)StatusCode(HttpStatusCode.InternalServerError)); }