ASP.NET Core Recent Posts

ASP.NET Core
			public ActionResult Trans(long accountNo, string fromDate, string toDate)
			{
				var startDate = DateTime.Now.AddDays(-7);
				var endDate = DateTime.Now;
				if (!string.IsNullOrEmpty(fromDate) && !string.IsNullOrWhiteSpace(fromDate))
				{
					//startDate = DateTime.ParseExact(fromDate, "MMM dd, yyyy", CultureInfo.InvariantCulture);
					startDate = fromDate.ToDateTime();
				}
				if (!string.IsNullOrEmpty(toDate) && !string.IsNullOrWhiteSpace(toDate))
				{
					//endDate = DateTime.ParseExact(toDate, "MMM dd, yyyy", CultureInfo.InvariantCulture);
					endDate = toDate.ToDateTime();
				}
				var model = _str.Trans(accountNo, startDate, endDate);
				return PartialView("_Trans", model);
			}