Ejemplo n.º 1
0
        public IServiceResultWrap PhoneSaveAllChanges([FromBody] VmPhoneChannel model)
        {
            var data = model;

            return(serviceManager.CallService(
                       () => new ServiceLocalizedResultWrap(model)
            {
                Data = channelService.AddPhoneChannel(model)
            },
                       new Dictionary <Type, string>()
            {
                { typeof(string), MessageAddPhoneChannel },
                { typeof(PtvArgumentException), MessageArgumentException },
                { typeof(RoleActionException), MessageAddChannelRole }
            }));
        }