Exemplo n.º 1
0
        public IHttpActionResult DeleteSMSSenderInfo(Int64 id)
        {
            CRUDOperation operation = new CRUDOperation();

            var dbitem = operation.DeleteSMSSenderInfo(id, 0);

            return(Ok(dbitem));
        }
Exemplo n.º 2
0
 public ActionResult Delete(int id)
 {
     try
     {
         CRUDOperation dataOperations = new CRUDOperation();
         var           UserProfile    = (UserProfileSessionData)this.Session["UserProfile"];
         if (UserProfile != null)
         {
             dataOperations.DeleteSMSSenderInfo(id, UserProfile.UserId);
         }
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(View("Error", new HandleErrorInfo(ex, "Error", "Error")));
     }
 }