コード例 #1
0
 /// <summary>
 ///     This method is for deleting an existig team: the delete request has to be Json
 /// </summary>
 /// <param name="id">The team id to be deleted</param>
 public void Delete(int id)
 {
     var team = new Facade().GetTeamRepository().Read(id);
     new Facade().GetTeamRepository().Delete(team);
 }
コード例 #2
0
 // DELETE api/values/5
 public void Delete(int id)
 {
     var eve = new Facade().GetEventRepository().Read(id);
     new Facade().GetEventRepository().Delete(eve);
 }
コード例 #3
0
 // DELETE api/values/5
 public void Delete(int id)
 {
     var post = new Facade().GetPostRepository().Read(id);
     new Facade().GetPostRepository().Delete(post);
 }
コード例 #4
0
 // DELETE api/values/5
 public void Delete(int id)
 {
     var image = new Facade().GetAdministratorRepository().Read(id);
     new Facade().GetAdministratorRepository().Delete(image);
 }
コード例 #5
0
 public void TearDown()
 {
     facade = null;
 }
コード例 #6
0
 public void SetUp()
 {
     facade = new Facade(new DbContextGoWebsiteTest());
 }