Example #1
0
        public virtual IActionResult SubscriberPut(int key, string values)
        {
            NcChannelSubscriber entity = channelManager.FindSubscriberById(key);

            if (!this.TryValidateViewModel(values, entity))
            {
                return(this.GetBadRequestWithFullErrorMessage <NcChannelSubscriber>(ModelState));
            }

            //await channelManager.SubscriberUpdateAsync(entity).TryCatchAsync(ex=>logger.LogError(ex, "CHYBA"));
            return(channelManager.SubscriberUpdateAsync(entity).WaitForActionResult());
        }