Ejemplo n.º 1
0
        public async Task <IActionResult> AddTeamAsync([FromBody] Team team)
        {
            var user = await Session.GetCurrentUser();

            if (user == null)
            {
                return(Unauthorized());
            }
            return(Ok(await TeamRepository.AddTeamAsync(user, team)));
        }