public void Delete()
        {
            TagsResponse response = repo.Delete(1);
            TagsResponse actual   = repo.GetById(1);

            Assert.AreEqual(true, response.Success);
            Assert.AreEqual(false, actual.Success);
        }
        public TagsResponse Delete(int id)
        {
            var context = new PersonalBlogEntities();

            if (context.Tags.FirstOrDefault(t => t.TagId == id) == null)
            {
                var response = new TagsResponse();
                response.Success = false;
                response.Message = "There is no tag in our database that matches the delete criteria.";
                return(response);
            }

            return(repo.Delete(id));
        }