public async Task <IHttpActionResult> EditUser([FromBody] Office365UserEditViewModel model) { var office365EditUser = Office365ServiceConstants.QueueManageSubscriptionsAndLicences; await _messageBroker.GetSendEndpoint(office365EditUser) .Send <IManageSubscriptionsAndLicencesCommand>(model.ToManageSubscriptionsAndLicencesCommand()); return(Ok()); }
//TAG public static dynamic ToManageSubscriptionsAndLicencesCommand(this Office365UserEditViewModel viewModel) { return(new { viewModel.CompanyId, viewModel.CloudPlusProductIdentifiers, viewModel.User, viewModel.UserRoles, viewModel.SecurityGroupName, viewModel.DistributionGroupName, viewModel.Office365GroupName, MessageType = ManageSubsctiptionAndLicenceCommandType.EditUser }); }