public void DeleteAcademyAddress(int idAcademyAddress) { var business = AcademyBusiness.Instance; var request = new DeleteAcademyAddressRequest(this.Context); request.IdAcademyAddress = idAcademyAddress; business.DeleteAcademyAddress(request); }
public void DeleteAcademyAddress(DeleteAcademyAddressRequest request) { if (request != null) { var dataAccess = new AcademyAddressDataAccess(request.Context); var address = dataAccess.GetById(request.IdAcademyAddress); dataAccess.Delete(address.FirstOrDefault()); } }