Ejemplo n.º 1
0
        public async Task <ActionResult> Actions(string action)
        {
            if (action != null)
            {
                switch (action)
                {
                case "RotateСlockwise":
                    var matrix = await _matrixService.ReadMatrixAsync();

                    _matrixService.RotateMatrixСlockwise(matrix);
                    await _matrixService.WriteMatrixAsync(matrix);

                    break;
                }
            }

            return(RedirectToAction("Index", "Home"));
        }