/// <summary> /// Get All Users deleted by shop user /// </summary> /// <param name="shopId"></param> /// <returns></returns> public static List <InProcessUsersBL> GetAllDeletedUsers(int shopId) { SummitDS.SP_Search_InProcessUsersDataTable thisTable = getAdapter().GetDeletedUsers(shopId); List <InProcessUsersBL> lstCustomerList = null; if (thisTable != null && thisTable.Rows.Count > 0) { lstCustomerList = BuildFromTable(thisTable); } return(lstCustomerList); }
public static Int32 getDueDeliveriesCount(int shopId) { SummitDS.SP_Search_InProcessUsersDataTable thisTable = getAdapter().GetData(shopId); List <InProcessUsersBL> lstCustomerList = null; if (thisTable != null && thisTable.Rows.Count > 0) { lstCustomerList = BuildFromTable(thisTable); List <InProcessUsersBL> lstNewUserList = new List <InProcessUsersBL>(); foreach (InProcessUsersBL objUser in lstCustomerList) { if (objUser.dtOutDate > DateTime.Now.ToUniversalTime()) { lstNewUserList.Add(objUser); } } if (lstNewUserList.Count > 0) { return(lstNewUserList.Count); } } return(0); }