Пример #1
0
 public string DeleteSchecduledMessage(string id)
 {
     try
     {
         ScheduledMessageRepository objScheduledMessageRepository = new ScheduledMessageRepository();
         objScheduledMessage    = new Domain.Socioboard.Domain.ScheduledMessage();
         objScheduledMessage.Id = Guid.Parse(id);
         objScheduledMessageRepository.deleteMessage(objScheduledMessage);
         return(new JavaScriptSerializer().Serialize(""));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace);
         return(new JavaScriptSerializer().Serialize("Please try Again"));
     }
 }