Ejemplo n.º 1
0
 public IServiceResultWrap ArchiveLanguage([FromBody] VmEntityBasic model)
 {
     return serviceManager.CallService(
         () => new ServiceLocalizedResultWrap(model)
         {
             Data = model.Id.HasValue ? channelService.ArchiveLanguage(model) : null
         },
         new Dictionary<Type, string>()
         {
             { typeof(string), EntityMessageArchived },
             { typeof(LockException), MessageLockedChannel },
             { typeof(RoleActionException), MessageDeleteChannelRole },
             { typeof(ArchiveLanguageException), RESTCommonController.MessageDeleteLanguage }
         });
 }