Пример #1
0
        public async Task <MessageResponse> CreateGroup(GroupViewModel group)
        {
            CoreEngine core = new CoreEngine();

            DomainCore.Models.GroupModel g = new DomainCore.Models.GroupModel
            {
                Game  = TestingSettings.DEFAULT_GAME,
                Name  = group.Name,
                Owner = group.Owner
            };

            var msg = await core.CreateGroup(_repo, g);

            var response = new MessageResponse {
                Message = msg
            };

            return(response);
        }