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); }
public async Task <bool> Create(CreateToDoView view) { await _toDoTaskRepository.Add(MapViewToToDo(view)); return(true); }