示例#1
0
        public async Task <RedirectToActionResult> AddAnswer(TaskViewModel taskVm, string taskId, string authorName)
        {
            _taskService.AddAnswer(taskVm, taskId, authorName);
            await _cacheService.SetCacheValueAsync("task" + taskId, "");

            return(RedirectToAction("Index", "Task", new { taskId }));
        }