Example #1
0
        public async Task <IActionResult> Get(int id)
        {
            CatalogosDto response = null;

            response = await this.logicFacade.GetListCatalogosActive(id);

            return(this.Ok(response));
        }
Example #2
0
        public async Task UpdateCatalogos()
        {
            // Arrange
            var model = new CatalogosDto();

            // Act
            var response = await this.modelFacade.UpdateCatalogos(model);

            // Assert
            Assert.IsNotNull(response);
        }
 /// <inheritdoc/>
 public async Task <bool> InsertCatalogos(CatalogosDto model)
 {
     return(await this.modelDao.InsertCatalogos(this.mapper.Map <CatalogosModel>(model)));
 }
Example #4
0
        public async Task <IActionResult> Put([FromBody] CatalogosDto dataToStore)
        {
            var response = await this.logicFacade.UpdateCatalogos(dataToStore);

            return(this.Ok(response));
        }
 /// <inheritdoc/>
 public async Task <bool> UpdateCatalogos(CatalogosDto model)
 {
     return(await this.modelService.UpdateCatalogos(model));
 }
 /// <inheritdoc/>
 public async Task <bool> InsertCatalogos(CatalogosDto model)
 {
     return(await this.modelService.InsertCatalogos(model));
 }