Exemple #1
0
        private ToDoTask MapViewToToDo(CreateToDoView view)
        {
            var res = new ToDoTask();

            res.ToDo         = view.ToDo;
            res.Information  = view.Information;
            res.Description  = view.Description;
            res.State        = State.Medium;
            res.IsComppleted = false;

            return(res);
        }
Exemple #2
0
        public async Task <bool> Create(CreateToDoView view)
        {
            await _toDoTaskRepository.Add(MapViewToToDo(view));

            return(true);
        }