public async Task <IActionResult> CreateFactor([FromBody] Factor factor) { this.context.Add(factor); await context.SaveChangesAsync(); return(Ok(factor)); }
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)); }