public async Task <IActionResult> PostOne([FromBody] Favourites body) { await Db.Connection.OpenAsync(); body.Db = Db; await body.InsertOne(); return(new OkObjectResult(body)); }
public async Task <IActionResult> PostOne([FromBody] Favourites body) { await Db.Connection.OpenAsync(); body.Db = Db; await body.InsertOne(); return(new OkObjectResult(body)); }