/// <summary> /// Addition of two numbers /// </summary> /// <param name="sum"></param> /// <returns></returns> public ActionResult Add(SumModel sum) { try { int FirstNumber = sum.FirstNumber; int SecondNumber = sum.SecondNumber; sum.Result = FirstNumber + SecondNumber; return(RedirectToAction("Index", sum)); } catch (Exception ex) { HandleError.WriteError(ex); return(View("Error")); } }