Beispiel #1
0
        public List <RequestDTO> GetRequests(int divisionId)
        {
            var requests = RequestDAL.GetRequests(divisionId);

            if (requests == null)
            {
                return(null);
            }

            return(Map <List <RequestDTO> >(requests));
        }
Beispiel #2
0
        public List <RequestDTO> GetRequests()
        {
            var requests = RequestDAL.GetRequests();

            if (requests == null)
            {
                return(null);
            }

            return(Map <List <RequestDTO> >(requests));
        }
Beispiel #3
0
        public TnkLfeRequest GetRequest(int id)
        {
            DataSet       ds     = RequestDAL.GetRequests(id);
            TnkLfeRequest requet = new TnkLfeRequest();

            if (ds != null && ds.Tables.Count > 0)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    requet.Id          = Convert.ToInt32(dr["Id"]);
                    requet.Requester   = Convert.ToString(dr["Requester"]);
                    requet.Summary     = Convert.ToString(dr["Summary"]);
                    requet.Description = Convert.ToString(dr["Description"]);
                }
            }
            return(requet);
        }
Beispiel #4
0
        public List <TnkLfeRequest> GetRequests()
        {
            List <TnkLfeRequest> requets = new List <TnkLfeRequest>();
            DataSet ds = RequestDAL.GetRequests();

            if (ds != null && ds.Tables.Count > 0)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    TnkLfeRequest requet = new TnkLfeRequest();
                    requet.Requester   = Convert.ToString(dr["Requester"]);
                    requet.Summary     = Convert.ToString(dr["Summary"]);
                    requet.Description = Convert.ToString(dr["Description"]);
                    requet.Id          = Convert.ToInt32(dr["Id"]);
                    requets.Add(requet);
                }
            }
            return(requets);
        }