public static Request GetRequest(string requestId)
        {
            RequestDataSource reqDS = new RequestDataSource();
            DatasetInfoDataSource viewDs = new DatasetInfoDataSource();
            RequestEntry req = reqDS.GetById(requestId);
            AnalyticInfo dsInfo = viewDs.GetAnalyticSummary(Helper.GenerateRequestKey(requestId));

            return new Request()
            {
                DatasetLink = req.DatasetLink,
                Description = req.Description,
                Links = req.Links,
                NegativeVotes = dsInfo.NegativeVotes,
                PositiveVotes = dsInfo.PositiveVotes,
                PostedDate = req.PostedDate,
                ReleaseDate = req.ReleaseDate,
                Status = req.Status,
                Subject = req.Subject,
                Views = dsInfo.views_total,
                RequestID = req.RowKey
            };
        }
 public static void UpdateRequest(Request item)
 {
     RequestDataSource reqDS = new RequestDataSource();
     RequestEntry request = reqDS.GetById(item.RequestID);
     Convert.CopyFields(item, request);
     reqDS.UpdateRequest(request);
 }