Пример #1
0
        public async Task <Assignment[]> GetAssignmentsByClassId(string id)
        {
            var result = await educationServiceClient.GetAssignmentsByClassIdAsync(id);

            foreach (var item in result)
            {
                item.ResourceFiles = Assignment.GetResourcesFiles(item.Resources);
            }
            return(result);
        }
        public async Task <Assignment[]> GetAssignmentsByClassId(string id)
        {
            var result = await educationServiceClient.GetAssignmentsByClassIdAsync(id);

            foreach (var item in result)
            {
                item.ResourceFiles = Assignment.GetResourcesFiles(item.Resources);
                item.DueDateTime   = DateTimeOffset.Parse(item.DueDateTime).UtcDateTime.ToLocalTime().ToString("MM/dd/yyyy");
            }
            return(result);
        }