コード例 #1
0
ファイル: GroupsController.cs プロジェクト: Dnigor/mycnew
        public ActionResult Detail(Guid groupId, string groupName)
        {
            var source = new Group
                             {
                                 GroupId = groupId,
                                 GroupName = groupName
                             };

            var model = _groupDetailMappingService.Map(source);

            return View(model);
        }
コード例 #2
0
        public dynamic AddCustomerToNewGroup(Guid custid, Group group)
        {
            var command = new Quartet.Entities.Commands.AddGroup
            {
                GroupId = Guid.NewGuid(),
                Name = group.GroupName
            };
            _clientFactory.GetCommandServiceClient().Execute(command);

            AddCustomerToGroup(custid, command.GroupId);

            return new Quartet.Entities.Views.Group
            {
                GroupId = command.GroupId,
                Name = command.Name,
                Description = command.Description
            };
        }