public async Task <IActionResult> Post(Sentence sentence) { try { _context.Sentences.Add(new Sentence { StringValue = sentence.StringValue }); await _context.SaveChangesAsync(); return(Ok()); } catch { return(StatusCode(500, $"There was an error saving your sentence, please try again.{Environment.NewLine}If the problem persists contact your administrator")); } }