Esempio n. 1
0
        public IHttpActionResult Get()
        {
            var getAll = employeeRepository.Get();

            if (getAll != null)
            {
                return(Ok(getAll));
            }
            return(NotFound());
        }
        public async Task <IHttpActionResult> Get(int id)
        {
            var result = await employeeRepo.Get(id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }