Esempio n. 1
0
        public string DeleteDrafts(String Id)
        {
            try
            {
                Guid DraftId = Guid.Parse(Id);

                int isUpdated = objDraftsRepository.DeleteDrafts(DraftId);
                if (isUpdated > 0)
                {
                    return("Success");
                }
                else
                {
                    return("Failed");
                }
            }
            catch (Exception)
            {
                return("Failed");
            }
        }
Esempio n. 2
0
        public string DeleteDrafts(String Id)
        {
            try
            {
                Domain.Socioboard.Domain.Drafts objDrafts = new Domain.Socioboard.Domain.Drafts();

                Guid DraftId = Guid.Parse(Id);

                int isUpdated = objDraftsRepository.DeleteDrafts(objDrafts);
                if (isUpdated > 0)
                {
                    return("Success");
                }
                else
                {
                    return("Failed");
                }
            }
            catch (Exception)
            {
                return("Failed");
            }
        }