Beispiel #1
0
        public async Task <IHttpActionResult> Get(string name)
        {
            var employee = await _repository.GetEmployeeBy(name);

            if (employee != null)
            {
                return(Ok(employee));
            }

            return(NotFound());
        }