public async Task <IActionResult> Create(Patient patient) { if (patient == null) { return(BadRequest(patient)); } Review rev = _bl.addReview(patient); /*patient.Reviews.Add(rev);*/ _context.Reviews.Add(rev); await _context.SaveChangesAsync(); return(Created($"/{ControllerContext.ActionDescriptor.ControllerName}/{rev?.Id}", rev)); }