public IActionResult Post(string parametersString) { OperationResult operationResult = new OperationResult(); string[] values = parametersString.Split('~'); FairfieldAllergeryRepository fairfieldAllergeryRepository = new FairfieldAllergeryRepository(); operationResult = fairfieldAllergeryRepository.UpdateUserName(values[0], values[1], values[2]); if (operationResult.Success) { return(Ok(new { status = "Success" })); } else { return(Ok(new { status = "Failure" })); } }