public List <RequestDTO> GetRequests(int divisionId) { var requests = RequestDAL.GetRequests(divisionId); if (requests == null) { return(null); } return(Map <List <RequestDTO> >(requests)); }
public List <RequestDTO> GetRequests() { var requests = RequestDAL.GetRequests(); if (requests == null) { return(null); } return(Map <List <RequestDTO> >(requests)); }
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); }
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); }