public async Task <User> FindByNameAsync(String userName) { CloudTable table = await _cloudTableHelper.GetCloudTableByName(_configuration["UsersTable"]); TableStorageUser foundUser = await _cloudTableHelper.GetEntity <TableStorageUser>(table, _partitionKey, userName); if (foundUser == null) { return(default);
public async Task <ExistingProjectWithTasks> GetProjectByName(String name) { CloudTable table = await _cloudTableHelper.GetCloudTableByName(_configuration["TableName"]); return(await _cloudTableHelper.GetEntity <ExistingProjectWithTasks>(table, _partitionKey, name)); }