Beispiel #1
0
        public ActionResult Detail(Guid groupId, string groupName)
        {
            var source = new Group
                             {
                                 GroupId = groupId,
                                 GroupName = groupName
                             };

            var model = _groupDetailMappingService.Map(source);

            return View(model);
        }
        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
            };
        }