[HttpPost("Prescription")] //Done public async Task <ActionResult <IEnumerable <string> > > Create_Prescription(Prescription model) { try { _doctorService.Create_Prescription(model); if (await _context.SaveChangesAsync() > 0) { return(Ok("Employee Added successfully")); } } catch (Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Database Failure")); } return(BadRequest()); }