public async Task UpdateAsync(TaskBlock taskBlock)
 {
     using (_context = ContextFactory.GetContext())
     {
         _context.Update(taskBlock);
         await _context.SaveChangesAsync();
     }
 }
        public async Task <TaskBlock> AddAsync(TaskBlock taskBlock)
        {
            using (_context = ContextFactory.GetContext())
            {
                taskBlock.dtModified = DateTime.Now;
                await _context.TaskBlocks.AddAsync(taskBlock);

                await _context.SaveChangesAsync();

                return(taskBlock);
            }
        }