public string GetAllScheduledMessageByDays(string userid, string profileid, string days) { List <Domain.Socioboard.Domain.ScheduledMessage> _ScheduledMessage = new List <Domain.Socioboard.Domain.ScheduledMessage>(); try { _ScheduledMessage = objScheduledMessageRepository.getAllSentMessageDetailsByDays(Guid.Parse(userid), profileid, Convert.ToInt32(days)); } catch (Exception ex) { logger.Error(ex.Message); Console.WriteLine(ex.StackTrace); } return(new JavaScriptSerializer().Serialize(_ScheduledMessage)); }