Пример #1
0
        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);
            //}
        }
Пример #2
0
 public void DeleteById(int id)
 {
     _playerDao.DeleteById(id);
 }