示例#1
0
        public List <Todo> GetTodos()
        {
            List <Todo> todoList = new List <Todo>();

            try
            {
                List <DataAccessLogic.Entities.Todo> tempList = _todo.GetAll();
                foreach (DataAccessLogic.Entities.Todo obj in tempList)
                {
                    todoList.Add(EntityMapper(obj));
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);

                throw;
            }
            return(todoList);
        }