Ejemplo n.º 1
0
 public IHttpActionResult DeleteTrainingCourseUser(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblTrainingCourseUser DelTrainingCourseUser = JsonObject.ToObject <ViewModel.tblTrainingCourseUser>();
         bool ret = BisTrainingCourseUser.DeleteTrainingCourseUser(DelTrainingCourseUser);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
Ejemplo n.º 2
0
 public bool DeleteTrainingCourseUser(ViewModel.tblTrainingCourseUser tblTrainingCourseUser)
 {
     return(sqlHelper.RunProcedure("sp_tblTrainingCourseUser_Delete", tblTrainingCourseUser) > 0);
 }
Ejemplo n.º 3
0
 public bool AddTrainingCourseUser(ViewModel.tblTrainingCourseUser tblTrainingCourseUser)
 {
     return(sqlHelper.RunProcedure("sp_tblTrainingCourseUser_Insert", tblTrainingCourseUser) > 0);
 }