public async Task <ActionResult> RemoveSkill(int agentId, int skillId) { logger.Info($"Action Start | Controller name: {nameof(AgentsController)} | Action name: {nameof(RemoveSkill)} | Input params: {nameof(agentId)}={agentId}, {nameof(skillId)}={skillId}"); AgentToSkill agentToSkill = await repository.FindAgentToSkillAsync(agentId, skillId); await repository.DeleteAgentToSkillAsync(agentToSkill.Id); await repository.SaveAsync(); return(RedirectToAction("AgentSkills", new { id = agentId })); }