public ObjectResult Subtract([FromQuery] double num1, [FromQuery] double num2) { var calcResult = _service.Subtract(num1, num2); string result = _calcResults.Decorate(num1, num2, calcResult, "Sub"); return(Ok(result)); }
public IActionResult Subtract(CalcModel model) { var result = _calcService.Subtract(Int32.Parse(model.num1), Int32.Parse(model.num2)); model.result = result; return(View(model)); }
public ActionResult SubOption(CalcModel Model) { var result = new CalcResultModel(); CalcService Service = new CalcService(); result.result = Service.Subtract(Model); return(Ok(result)); }
public IActionResult Subtract(string a, string b) { var result = _calcService.Subtract(Int32.Parse(a), Int32.Parse(b)); return(Ok(result)); }