public IActionResult Delete(int anId) { Teacher myItem = _repo.Delete(anId); if (myItem != null) { var myResponse = _mapper.Map <TeacherDto>(myItem); return(Ok(myResponse)); } return(NotFound()); }
public bool Delete(string ID) { return(dal.Delete(ID)); }