public IActionResult Index(mod incomingMod) { if(incomingMod.msge == null) { mod obj = new mod(); obj.msge = Xpert.Advice()+ "and"; return View(obj); } else { return View(incomingMod); } }
static void Main(string[] args) { Xpert xpert = new Xpert(); Console.WriteLine(xpert.Advice()); }