public HttpResponseMessage AddHUIItem(HelpUsImproveItem WSHUI)
        {
            try
            {
                var newHuI = new HelpUsImproveItem()
                {
                    Found       = WSHUI.Found,
                    LookingFor  = WSHUI.LookingFor,
                    Suggestions = WSHUI.Suggestions,
                    //HUIDateTime = WSHUI.HUIDateTime,
                    CreatedBy     = WSHUI.CreatedBy,
                    CreatedUserID = WSHUI.CreatedUserID,

                    MailTo    = WSHUI.MailTo,
                    MailFrom  = WSHUI.MailFrom,
                    PortalURL = WSHUI.PortalURL
                };
                HelpUsImproveController cPC = new HelpUsImproveController();
                cPC.InsertHUIItem(newHuI);
                return(Request.CreateResponse(HttpStatusCode.OK));
            }
            catch (Exception exc)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
            }
        }
 public HttpResponseMessage GetHUIItem(int HelpUsImproveID)
 {
     try
     {
         var huiItem = new HelpUsImproveController().GetHUIItem(HelpUsImproveID).ToJson();
         return(Request.CreateResponse(HttpStatusCode.OK, huiItem));
     }
     catch (Exception exc)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
     }
 }
 public HttpResponseMessage GetHUIData()
 {
     try
     {
         var HUIData = new HelpUsImproveController().GetHUIData().ToJson();
         return(Request.CreateResponse(HttpStatusCode.OK, HUIData));
     }
     catch (Exception exc)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
     }
 }
 public HttpResponseMessage DeleteHUIItem(int HelpUsImproveID)
 {
     try
     {
         HelpUsImproveController cPC = new HelpUsImproveController();
         cPC.DeleteHUIItem(HelpUsImproveID);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch (Exception exc)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
     }
 }
 public HttpResponseMessage UpdateHUIItem(HelpUsImproveItem WSHUI)
 {
     try
     {
         var newHuI = new HelpUsImproveItem()
         {
             HelpUsImproveID = WSHUI.HelpUsImproveID,
             Found           = WSHUI.Found,
             LookingFor      = WSHUI.LookingFor,
             Suggestions     = WSHUI.Suggestions,
             //HUIDateTime = WSHUI.HUIDateTime,
             ModifiedBy     = WSHUI.ModifiedBy,
             ModifiedUserID = WSHUI.ModifiedUserID
         };
         HelpUsImproveController cPC = new HelpUsImproveController();
         cPC.UpdateHUIItem(newHuI);
         return(Request.CreateResponse(HttpStatusCode.OK));
     }
     catch (Exception exc)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
     }
 }