Пример #1
0
        public async Task <IHttpActionResult> GetById(int id)
        {
            Manager manager = await managerRepository.FindByCondition(item => item.Id == id).FirstOrDefaultAsync();

            if (manager == null)
            {
                return(Content(HttpStatusCode.NotFound, "Manager not found"));
            }
            return(Ok(manager.ManagerToManagerReturnDto()));
        }