예제 #1
0
 public ActionResult Index(double input, string currency)
 {
     //if statement to ensure user has entered all neccessary values
     if (input != 0 && currency != null)
     {
         ViewBag.Input = model.Convert(input, currency);
         input         = ViewBag.Input;
         SQLiteConnection conn = model.CreateConnection();
         model.InsertData(conn, currency, input);
         return(View("Index"));
     }
     else
     {
         return(View("Index"));
     }
 }