Beispiel #1
0
        public async Task <ActionResult> GetUserLastPaidStudentFee([FromQuery] string ssn)
        {
            if (ssn == null)
            {
                return(BadRequest(new ArgumentNullException(nameof(ssn))));
            }
            var brisUser = await _repository.GetBrisUserBySsn(ssn);

            if (brisUser == null)
            {
                return(NotFound());
            }
            return(Ok(new { LastPaidStudentFee = brisUser.LastPaidStudentFee }));
        }