Ejemplo n.º 1
0
        // GET: api/TaskManager
        public IEnumerable <User> GetAllUsers()
        {
            TaskManagerBL taskManagerBL = new TaskManagerBL();
            List <User>   lstUser       = new List <User>();

            foreach (var user in taskManagerBL.ReadAllUser())
            {
                lstUser.Add(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(lstUser);
        }