Exemple #1
0
        public void TestDeleteProject()
        {
            businessObj.DeleteProject(projectId);

            Project item = businessObj.GetAllProject().FirstOrDefault(x => x.ProjectID == projectId);

            Assert.AreEqual(null, item);
        }
Exemple #2
0
        public IHttpActionResult DeleteProject(int id)
        {
            var response = businessObj.DeleteProject(id);

            return(Content(HttpStatusCode.OK, response));
        }