public async Task UserHardDeleteAsync(Office365ApiUserModel model) { if (model == null) { throw new ArgumentNullException(nameof(model)); } await TryExecutePost(_configurationManager.GetByKey("Office365Api.UserHardDelete"), model); }
public async Task <string> CreateOffice365UserAsync(Office365ApiUserModel model) { if (model == null) { throw new ArgumentNullException(nameof(model)); } var response = await TryExecutePost(_configurationManager.GetByKey("Office365Api.Users"), model); var office365UserId = await response.Content.ReadAsAsync <HttpResponse>(); return(Convert.ToString(office365UserId.Result)); }