public String getForm(String parentCategory)
        {
            String  category       = _hardwareCategoryTable.GetRow(parentCategory);
            JObject categoryObject = JsonConvert.DeserializeObject <JObject>(category);
            String  body           = CustomForm.getFormView(categoryObject["customFields"].ToString(), "HardwareFields");
            String  headers        = CustomForm.getFormTitlesView(categoryObject["customFields"].ToString());
            JObject Result         = new JObject();

            Result.Add("body", body);
            Result.Add("headers", headers);
            return(JsonConvert.SerializeObject(Result));
        }
 /// <summary>
 ///     This method creates the form's view for the specified profile in the form of tabs
 /// </summary>
 /// <param name="profile">
 ///     The profile's id which we want to print
 /// </param>
 /// <author>
 ///     Luis Gonzalo Quijada Romero
 /// </author>
 /// <returns>
 ///     Returns the form's html structure
 /// </returns>
 public String getFormView(String profile)
 {
     if (this.Request.IsAjaxRequest()) //only available with AJAX
     {
         try
         {
             BsonDocument document   = employeeprofileTable.getRow(profile);
             String       formString = document.GetElement("customFields").Value.ToString();
             String       response   = CustomForm.getFormView(formString, "CustomFields"); //we use the CustomForm class to generate the form's fiew
             return(response);
         }
         catch (Exception e)
         {
             return(null);
         }
     }
     return(null);
 }