static async Task <string> FindResourceGroup(string resourceGroupName) { var result = await GetResourceGroup.InvokeAsync(new GetResourceGroupArgs { ResourceGroupName = resourceGroupName }); return("ciao"); }
/// <summary> /// Returns a single group where the id in the request matches the record ID in the database. /// </summary> /// <param name="request">The request used for requesting the record from the database,it only looks at the ID value and none of the other parameters..</param> /// <returns>The group record as a fully loaded object</returns> public virtual ResourceGroupResponse Any(GetResourceGroup request) { return(ExecuteFaultHandledMethod(() => { ResourceGroupResponse response = new ResourceGroupResponse(); //IResourceGroupRepository _repository = _DataRepositoryFactory.GetDataRepository<IResourceGroupRepository>(); var _repository = _DataRepositoryFactory.GetDataRepository <IGenericEntityRepositoryBase <JarsResourceGroup, IDataContextNhJars> >(); response.Group = _repository.GetById(request.Id, true).ConvertTo <ResourceGroupDto>(); return response; })); }