Ejemplo n.º 1
0
 public IHttpActionResult DeleteComment(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblComment DelComment = JsonObject.ToObject <ViewModel.tblComment>();
         bool ret = BisComment.DeleteComment(DelComment);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Ejemplo n.º 2
0
 public bool UpdateComment(ViewModel.tblComment Comment)
 {
     return(sqlHelper.RunProcedure("sp_tblComment_Update", Comment) > 0);
 }
Ejemplo n.º 3
0
 public bool DeleteComment(ViewModel.tblComment Comment)
 {
     return(sqlHelper.RunProcedure("sp_tblComment_DeleteRow", Comment) > 0);
 }
Ejemplo n.º 4
0
 public bool AddComment(ViewModel.tblComment Comment)
 {
     return(sqlHelper.RunProcedure("sp_tblComment_Insert", Comment) > 0);
 }