private async Task SuggestCorrection() { var request = new Model.Requests.NotationCorrectionsInsertRequest { NotationId = _notationId, NotationContent = Notation.NotationContent }; var entity = _serviceNotationCorrections.Insert <Model.NotationCorrections>(request); if (entity != null) { await Application.Current.MainPage.DisplayAlert("Success", "Your suggestion is awaiting review", "OK"); await Navigation.PopAsync(); } else { await Application.Current.MainPage.DisplayAlert("Error", "Your suggestion could not be saved.", "OK"); } }
public Model.NotationCorrections Insert([FromBody] Model.Requests.NotationCorrectionsInsertRequest request) { return(_service.Insert(request)); }