Exemple #1
0
        public StudentAddress AddStudentAddress([FromBody] StudentAddress address)
        {
            if (address != null)
            {
                var business = StudentBusiness.Instance;
                var request  = new AddStudentAddressRequest(this.Context);
                request.StudentAddress = address;

                address = business.AddStudentAddress(request);
            }

            return(address);
        }
Exemple #2
0
        public StudentAddress AddStudentAddress(AddStudentAddressRequest request)
        {
            StudentAddress address = null;

            if (request != null && request.StudentAddress != null)
            {
                var dataAccess = new StudentAddressDataAccess(request.Context);

                address = dataAccess.Add(request.StudentAddress);
            }

            return(address);
        }