public Task <MdiResponse> DeleteUnRegisteredUser(RegisterContact payload) { try { return(_registrationService.DeleteUnRegisteredUser(payload)); } catch (Exception) { return(null); } }
public async Task <MdiResponse> DeleteUnRegisteredUser(RegisterContact payload) { try { var response = await _serviceBase.Post(JsonConvert.SerializeObject(payload), Constants.DeleteUnregistredUserUrl); if (response.IsSuccessStatusCode) { var result = await response.Content.ReadAsStringAsync(); return(JsonConvert.DeserializeObject <MdiResponse>(result)); } return(new MdiResponse { IsSuccess = false, Message = string.Empty }); } catch (Exception e) { throw; } }