Beispiel #1
0
 public IHttpActionResult UpdateMainContactWayAndUser(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblContactWay UpdateContactWay = JsonObject.ToObject <ViewModel.tblContactWay>();
         bool ret = BisContactWay.UpdateMainContactWayAndUser(UpdateContactWay);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Beispiel #2
0
 public IHttpActionResult AddContactWay(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblContactWay NewContactWay = JsonObject.ToObject <ViewModel.tblContactWay>();
         bool ret = BisContactWay.AddContactWay(NewContactWay);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Beispiel #3
0
 public bool DeleteContactWay(ViewModel.tblContactWay tblContactWay)
 {
     return(sqlHelper.RunProcedure("sp_tblContactWay_Delete", tblContactWay) > 0);
 }
Beispiel #4
0
 public bool UpdateMainContactWayAndUser(ViewModel.tblContactWay tblContactWay)
 {
     return(sqlHelper.RunProcedure("sp_tblContactWay_UpdateMainContactWayAndUser", tblContactWay, true) > 0);
 }
Beispiel #5
0
 public bool Unsubscribe_To_True(ViewModel.tblContactWay tblContactWay)
 {
     return(sqlHelper.RunProcedure("sp_tblContactWay_Update_Unsubscribe_To_True", tblContactWay) > 0);
 }
Beispiel #6
0
 public bool AddContactWay(ViewModel.tblContactWay tblContactWay)
 {
     return(sqlHelper.RunProcedure("sp_tblContactWay_Insert", tblContactWay) > 0);
 }