示例#1
0
        public void DeleteAcademyAddress(int idAcademyAddress)
        {
            var business = AcademyBusiness.Instance;
            var request  = new DeleteAcademyAddressRequest(this.Context);

            request.IdAcademyAddress = idAcademyAddress;

            business.DeleteAcademyAddress(request);
        }
示例#2
0
        public void DeleteAcademyAddress(DeleteAcademyAddressRequest request)
        {
            if (request != null)
            {
                var dataAccess = new AcademyAddressDataAccess(request.Context);

                var address = dataAccess.GetById(request.IdAcademyAddress);

                dataAccess.Delete(address.FirstOrDefault());
            }
        }