Exemple #1
0
 public IHttpActionResult GetQuestionCustomerForMaterialPageOtherStep(ViewModel.tblQuestionCustomer QuestionCustomer)
 {
     try
     {
         JArray JsonQuestionCustomer = BisQuestionCustomer.GetQuestionCustomerForMaterialPageOtherStep(QuestionCustomer);
         return(Ok(JsonQuestionCustomer));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #2
0
 public IHttpActionResult CheckSortSequently()
 {
     try
     {
         ViewModel.tblQuestionCustomer QuestionCustomer = new ViewModel.tblQuestionCustomer();
         JArray JsonQuestionCustomer = BisQuestionCustomer.CheckSortSequently(QuestionCustomer);
         return(Ok(JsonQuestionCustomer));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #3
0
 public IHttpActionResult GetQuestionCustomerForSignUp()
 {
     try
     {
         ViewModel.tblQuestionCustomer QuestionCustomer = new ViewModel.tblQuestionCustomer();
         JArray JsonQuestionCustomer = BisQuestionCustomer.GetQuestionCustomerForSignUp(QuestionCustomer);
         return(Ok(JsonQuestionCustomer));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #4
0
 public IHttpActionResult AddQuestionCustomer(ViewModel.tblQuestionCustomer QuestionCustomer)
 {
     try
     {
         bool ret = BisQuestionCustomer.AddQuestionCustomer(QuestionCustomer);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #5
0
 public IHttpActionResult UpdateUseInMaterialDetail(ViewModel.tblQuestionCustomer QuestionCustomer)
 {
     try
     {
         bool ret = BisQuestionCustomer.UpdateUseInMaterialDetail(QuestionCustomer);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #6
0
 public JArray GetQuestionCustomer(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.ReturnJsonData("sp_tblQuestionCustomer_GetData", tblQuestionCustomer));
 }
Exemple #7
0
 public bool DeleteQuestionCustomer(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_Delete", tblQuestionCustomer) > 0);
 }
Exemple #8
0
 public bool ChangeSortInQuestionCustomer(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_ChangeSortInQuestionCustomer", tblQuestionCustomer) > 0);
 }
Exemple #9
0
 public bool UpdateUseInMaterialDetail(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_UpdateUseInMaterialDetail", tblQuestionCustomer) > 0);
 }
Exemple #10
0
 public bool UpdateUseInSignUp(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_UpdateUseInSignUp", tblQuestionCustomer) > 0);
 }
Exemple #11
0
 public bool UpdateQuestionCustomerAsRoot(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_UpdateAsRoot", tblQuestionCustomer) > 0);
 }
Exemple #12
0
 public bool UpdateParentQuestionCustomer(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_UpdateParent", tblQuestionCustomer) > 0);
 }
Exemple #13
0
 public bool AddQuestionCustomer(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.RunProcedure("sp_tblQuestionCustomer_Insert", tblQuestionCustomer) > 0);
 }
Exemple #14
0
 public JArray CheckSortSequently(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.ReturnJsonData("sp_tblQuestionCustomer_CheckSortSequently", tblQuestionCustomer));
 }
Exemple #15
0
 public JArray GetQuestionCustomerForMaterialPageOtherStep(ViewModel.tblQuestionCustomer tblQuestionCustomer)
 {
     return(sqlHelper.ReturnJsonData("sp_tblQuestionCustomer_GetDataForMaterialPageOtherStep", tblQuestionCustomer));
 }