private void GetData(DateTime dt) { try { cm = new CaloriesModel(); cm.Date = dt; CalorieList.DataSource = cr.SelectByDate(cm); CalorieList.DataBind(); } catch (Exception ex) { le.SaveLogError(ex); } }
private void GetData(DateTime dt) { try { cm = new CaloriesModel(); cm.Date = dt; cm.UserId = Convert.ToInt32(UserIdTxt.Text); CalorieList.DataSource = cr.SelectByDate(cm); CalorieList.DataBind(); } catch (Exception ex) { le.SaveLogError(ex); } }