public static void AddRequest(Request item)
 {
     RequestDataSource reqDS = new RequestDataSource();
     RequestEntry request = new RequestEntry();
     Convert.CopyFields(item, request);
     reqDS.AddRequest(request);
 }
 public static Request FromTableEntry(RequestEntry req)
 {
     return new Request()
     {
         Comments = req.Comments,
         DatasetLink = req.DatasetLink,
         Description = req.Description,
         Links = req.Links,
         PostedDate = req.PostedDate,
         ReleaseDate = req.ReleaseDate,
         Status = req.Status,
         Subject = req.Subject,
         RequestID = req.RowKey
     };
 }
            public static RequestEntry CopyFields(Request source, RequestEntry target)
            {
                target.Comments = source.Comments;
                target.DatasetLink = source.DatasetLink;
                target.Description = source.Description;
                target.Links = source.Links;
                target.PostedDate = source.PostedDate;
                target.ReleaseDate = source.ReleaseDate;
                target.Status = source.Status;
                target.Subject = source.Subject;
                target.Email = source.Email;
                target.Name = source.Name;

                if (!String.IsNullOrEmpty(source.RequestID))
                    target.RowKey = source.RequestID;

                return target;
            }
 public void UpdateRequest(RequestEntry item)
 {
 }
 public void AddRequest(RequestEntry item)
 {
 }
 public void UpdateRequest(RequestEntry item)
 {
 }
 public void AddRequest(RequestEntry item)
 {
 }