public async Task <IActionResult> AddRecord([FromBody] MeToYouSales newRecord) { //newRecord.date = "2020-10-09 17:11:23"; this.context.MeToYouSales.Add(newRecord); await context.SaveChangesAsync(); return(Ok(newRecord)); }
public void Add(MeToYouSales newRecord) { this.context.MeToYouSales.Add(newRecord); }