Beispiel #1
0
        public async Task <IEnumerable <TemplateLookupItem> > GetTemplates(TemplateLookupParameter parameter)
        {
            using (var connection = new SqlConnection(ConnectionString))
            {
                var result = await connection.QueryAsync <TemplateLookupItem>("spCustomizableFormTemplatesByFormType_SelectLookup",
                                                                              new
                {
                    idfsCFormTypeID = parameter.LookupType,
                    LanguageID      = parameter.Language
                },
                                                                              commandType : CommandType.StoredProcedure);

                return(result);
            }
        }
Beispiel #2
0
 public async Task <IEnumerable <TemplateLookupItem> > GetTemplatesLookup([FromBody] TemplateLookupParameter parameter)
 {
     return(await _dbService.GetTemplates(parameter));
 }