Exemplo n.º 1
0
 public IServiceResultWrap Check([FromBody] VmUrlChecker model)
 {
     return(serviceManager.CallService(
                () => new ServiceLocalizedResultWrap(model)
     {
         Data = urlService.CheckUrl(model)
     },
                new Dictionary <Type, string>()));
 }
 public IServiceResultWrap SaveRelations([FromBody] VmRelations model)
 {
     return(serviceManager.CallService(
                () => new ServiceLocalizedResultWrap()
     {
         Data = new VmServiceAndChannelResult()
         {
             ConnectedServices = serviceAndChannelService.SaveServiceAndChannels(model),
         }
     },
                new Dictionary <Type, string>()
     {
         { typeof(string), MessageAddServiceAndChannel },
         { typeof(RoleActionException), MessageAddServiceAndChannelRole }
     }));
 }
Exemplo n.º 3
0
 public JsonResult GetMessages()
 {
     return(Json(serviceManager.CallService(
                     () => new ServiceResultWrap {
         Data = messagesService.GetMessages(), DoNotCamelize = true
     },
                     new Dictionary <Type, string>())));
 }
Exemplo n.º 4
0
 public IServiceResultWrap GetTypeData()
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap {
         Data = typeDataService.GetTranslatedData()
     },
                new Dictionary <Type, string>()));
 }
 public IServiceResultWrap GetGeneralDescription([FromBody] VmGeneralDescriptionGet model)
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap {
         Data = generalDescriptionService.GetGeneralDescription(model)
     },
                new Dictionary <Type, string>()));
 }
Exemplo n.º 6
0
 public IServiceResultWrap GetFrontPageSearch()
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap()
     {
         Data = commonService.GetFrontPageSearch()
     },
                new Dictionary <Type, string>()));
 }
Exemplo n.º 7
0
 public IServiceResultWrap GetElectronicChannel([FromBody] VmChannelBasic model)
 {
     return serviceManager.CallService(
         () => new ServiceResultWrap { Data = channelService.GetElectronicChannel(model) },
         new Dictionary<Type, string>());
 }
 public IServiceResultWrap SearchGeneralDescriptions([Microsoft.AspNetCore.Mvc.FromBody] VmGeneralDescriptionSearchForm searchData)
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap()
     {
         Data = generalDescriptionService.SearchGeneralDescriptions(searchData)
     },
                new Dictionary <Type, string>()));
 }
Exemplo n.º 9
0
 public IServiceResultWrap GetOrganizationSearch()
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap()
     {
         Data = organizationService.GetOrganizationSearch()
     },
                new Dictionary <Type, string>()));
 }
Exemplo n.º 10
0
 public IServiceResultWrap GetOrganization([FromBody] VmOrganizationBasic model)
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap {
         Data = organizationService.GetOrganization(model)
     },
                new Dictionary <Type, string>()));
 }
Exemplo n.º 11
0
 public IServiceResultWrap SearchKeywords([FromBody] VmKeywordSearch model)
 {
     return(serviceManager.CallService(
                () => new ServiceResultWrap {
         Data = serviceService.KeywordSearch(model)
     },
                new Dictionary <Type, string>()));
 }