public void BeforeTest() { NoteVm = new NoteVm(); NoteHandler = new NoteHandler(NoteVm); DateConverter = new DateConverter(); Collection = new Collections(); }
public NoteHandler(NoteVm noteVm) { _noteVm = noteVm; Col = new Collections(); StationCollection = Col.LoadStation(); NotesCollection = Col.LoadNotes(); }
public IActionResult Create([FromBody] NoteVm newNote) { if (newNote == null) { return(BadRequest()); } NoteVm result = _noteService.Add(newNote); return(Ok(result)); }
public MainPage() { this.InitializeComponent(); vm = new NoteVm(); DataContext = vm; }