public IActionResult Caesar(string text, int number, string operation) { int num = operation == "encode" ? number : -number; string result = (text != null) ? utilityService.Caesar(text, num) : "Enter the text to be encoded"; string[] resultForView = { text, result }; return(View(resultForView as object)); }
public IActionResult Encode(string text, int shift) { var model = utilityService.Caesar(text, shift); return(View("Caesar", model)); }
public IActionResult Caesar(string text, int number) { return(View((object)us.Caesar(text, number))); }
public IActionResult Encoder(string text, int number) { ViewData["encoded"] = utilityService.Caesar(text, number); return(View()); }
public IActionResult Caesar(string text, int number) { var result = us.Caesar(text, number); return(View((object)result)); }
public IActionResult CaesarEncode(string text, int number) { ViewData["encoded"] = utilities.Caesar(text, number); return(View()); }
public IActionResult Decoder(string text, int number, UtilityService utilityService) { return(View("decoder", utilityService.Caesar(text, -number))); }