Пример #1
0
        public void DeleteStudentAddress(int idStudentAddress)
        {
            var business = StudentBusiness.Instance;
            var request  = new DeleteStudentAddressRequest(this.Context);

            request.IdStudentAddress = idStudentAddress;

            business.DeleteStudentAddress(request);
        }
Пример #2
0
        public void DeleteStudentAddress(DeleteStudentAddressRequest request)
        {
            if (request != null)
            {
                var dataAccess = new AcademyAddressDataAccess(request.Context);

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

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