public HttpResponseMessage DeleteById(int id) { //if (Authentication.getInstance().isAuthenticateWithHeader(Request)) //{ IPlayerDao PlayerDao = DalFactory.CreatePlayerDao(database); return(Request.CreateResponse <bool>(HttpStatusCode.OK, PlayerDao.DeleteById(id))); //} //else //{ // return new HttpResponseMessage(HttpStatusCode.Forbidden); //} }
public void DeleteById(int id) { _playerDao.DeleteById(id); }