Exemple #1
0
 public void BeforeTest()
 {
     NoteVm        = new NoteVm();
     NoteHandler   = new NoteHandler(NoteVm);
     DateConverter = new DateConverter();
     Collection    = new Collections();
 }
Exemple #2
0
 public NoteHandler(NoteVm noteVm)
 {
     _noteVm           = noteVm;
     Col               = new Collections();
     StationCollection = Col.LoadStation();
     NotesCollection   = Col.LoadNotes();
 }
Exemple #3
0
        public IActionResult Create([FromBody] NoteVm newNote)
        {
            if (newNote == null)
            {
                return(BadRequest());
            }
            NoteVm result = _noteService.Add(newNote);

            return(Ok(result));
        }
Exemple #4
0
 public MainPage()
 {
     this.InitializeComponent();
     vm          = new NoteVm();
     DataContext = vm;
 }