public async Task <bool> AddPatient(PatientPayloadViewModel patient) { HttpResponseMessage res = await _apiAccessor.GetHttpClient().PostAsJsonAsync <PatientPayloadViewModel>("Patient/create", patient); if (res.IsSuccessStatusCode) { var empResponse = res.Content.ReadAsStringAsync().Result; var newPatient = JsonConvert.DeserializeObject <PatientPayloadViewModel>(empResponse); return(true); } return(false); }