Ejemplo n.º 1
0
        public async Task <IActionResult> AddDirector([FromBody] int directorId)
        {
            var director = await SingleOrError(Repository.Get <User>().FindOne(new UserIdentifier(directorId)));

            var group = await SingleOrError(_groupsRepo.FindOne(EntityId).Include(_ => _.Directors));

            await _groupsRepo.AddDirector(group, director);

            return(Ok());
        }