//параметры для метода - из query string public IActionResult AddRequestHandler(int requestId, int employeeId) { if (requestId == 0 || employeeId == 0) { throw new ArgumentNullException(); } factoryService.AddRequestHandler(requestId, employeeId); return(RedirectToAction("GetMachines")); }