public IHttpActionResult Put(BlackListEleve black) { if (BlackListEleveDAO.Update(black)) { return(Ok()); } return(BadRequest()); }
public IHttpActionResult Delete(int id) { if (BlackListEleveDAO.Delete(id)) { return(Ok()); } return(BadRequest()); }
public BlackListEleve Post(BlackListEleve black) { return(BlackListEleveDAO.Insert(black)); }
public BlackListEleve Get(int id) { return(BlackListEleveDAO.Get(id)); }
public List <BlackListEleve> GetAll() { return(BlackListEleveDAO.Query()); }