Esempio n. 1
0
        public async Task <IHttpActionResult> GetAsync(int id)
        {
            var employee = await _employeeProvider.GetByIdAsync(id).ConfigureAwait(false);

            if (employee == null)
            {
                return(NotFound());
            }

            return(Ok(employee));
        }