Ejemplo n.º 1
0
 public jmp_statistics FindBytime(string start, string end)
 {
     var where = new List <string>();
     if (!string.IsNullOrEmpty(start))
     {
         where.Add("convert(varchar(10),s_time,120)>='" + start + "' ");
     }
     if (!string.IsNullOrEmpty(end))
     {
         where.Add("convert(varchar(10),s_time,120)<='" + end + "' ");
     }
     return(_repository.FindBytime(string.Join(" AND ", where)));
 }