Exemplo n.º 1
0
 public IActionResult History(string from, string to)
 {
     if (from != null && to != null)
     {
         DateTime fromDate = Convert.ToDateTime(from);
         DateTime toDate   = Convert.ToDateTime(to);
         ViewBag.From = fromDate.ToString("dd.MM.yyyy");
         ViewBag.To   = toDate.ToString("dd.MM.yyyy");
         return(View(_repository.GetLogExchangeRate(fromDate, toDate)));
     }
     else
     {
         return(View());
     }
 }