Beispiel #1
0
        public bool Delete(int id)
        {
            bool            status = false;
            StaffRepository repo   = new StaffRepository();

            status = repo.Delete(id);
            return(status);
        }
 //DELETE api/staff/id
 public void DeletePerson(int id)
 {
     db.Delete(id);
 }
Beispiel #3
0
 public bool Delete(Staff staff)
 {
     return(staffRepository.Delete(staff));
 }