public ActionResult time(DateTime time1, DateTime time2)
{
var time1=
//new SqlParameter("@begin",begin.ToString("yyyy-MM-dd 00:00:00")),
//new SqlParameter("@end",end.ToString("yyyy-MM-dd 23:59:59")),
return View();
}
public ActionResult Moneydetail(int pageIndex = 1, int pageSize = 15)
{
if (!Request.IsAuthenticated)
{
return Content("<script>alert('亲,你还没有登录登录!');location='/account/login?returnUrl=" + Request.RawUrl + "';</script>");
}
var monerdetail = db.JifenList.Where(p => p.UserID == Wz.Core.WebContext.Current.User.Id && p.Time > time1 && p.Time < time2).ToList();
return View();
}
}
后台那个时间方法怎么写
我的帐户明细
<div class="clearfix">
<form action="" method="post">
<input type="hidden" value="ok" name="search">
<div class="page_info">
时间:
<input name="time1" type="text" id="time1" value="time1" class="hasDatepicker">
至
<input name="time2" type="text" id="time2" value="time2" class="hasDatepicker">
<input type="submit" value="搜索" class="btn">
</div>
这是前台