/// <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); }
// DELETE api/values/5 public void Delete(int id) { var eve = new Facade().GetEventRepository().Read(id); new Facade().GetEventRepository().Delete(eve); }
// DELETE api/values/5 public void Delete(int id) { var post = new Facade().GetPostRepository().Read(id); new Facade().GetPostRepository().Delete(post); }
// DELETE api/values/5 public void Delete(int id) { var image = new Facade().GetAdministratorRepository().Read(id); new Facade().GetAdministratorRepository().Delete(image); }
public void TearDown() { facade = null; }
public void SetUp() { facade = new Facade(new DbContextGoWebsiteTest()); }