Exemplo n.º 1
0
        // GET: api/TaskManager/5
        public User GetUser(int id)
        {
            TaskManagerBL taskManagerBL = new TaskManagerBL();

            DA.User user = taskManagerBL.ReadUser(id);
            if (user != null)
            {
                return new User()
                       {
                           UserId     = user.User_ID,
                           EmployeeId = user.Employee_ID,
                           FirstName  = user.FirstName,
                           LastName   = user.LastName,
                           ProjectId  = user.Project_ID,
                           TaskId     = user.Task_ID
                       }
            }
            ;
            return(null);
        }