public IActionResult Delete(string parametersString) { string s1 = parametersString.ToString(); OperationResult operationResult = new OperationResult(); FairfieldAllergeryRepository fairfieldAllergeryRepository = new FairfieldAllergeryRepository(); operationResult = fairfieldAllergeryRepository.DeleteAppointment(parametersString); if (operationResult.Success) { return(Ok(new { status = "Success" })); } else { return(Ok(new { status = "Failure" })); } }