Beispiel #1
0
        public async Task <IActionResult> Post([FromBody] Application application)
        {
            if (User == null)
            {
                return(BadRequest());
            }
            await _university.AddAsyncApplication(application);

            return(CreatedAtRoute(nameof(FindApplication), new { id = application.ApplicationId }, application));
        }