public IActionResult Post([FromBody] FamilyAccount familyAccount) { OperationResult operationResult = new OperationResult(); string appointmentString = string.Empty; FairfieldAllergeryRepository fairfieldAllergeryRepository = new FairfieldAllergeryRepository(); operationResult = fairfieldAllergeryRepository.AddFamilyAccount(familyAccount); if (operationResult.Success) { return(Ok(new { status = "Success" })); } else { return(Ok(new { status = operationResult.ErrorMessage })); } }