public async Task DeleteConfigGenericItemExtentionAsync(ConfigGenericItemExtentionDto request) { _logger.LogDebug($"Deleting config generic item extention with request : {JsonConvert.SerializeObject(request)}"); var entity = await _dbContext.ConfigGenericItemExtensions.SingleOrDefaultAsync(x => x.GroupId == request.GroupId && x.Id == request.Id && x.Id == request.Id); if (entity != null) { _dbContext.ConfigGenericItemExtensions.Remove(entity); await _dbContext.SaveChangesAsync(); } else { _logger.LogError($"Cannot find config generic item extention to delete with group Id {request.GroupId}, Item id {request.ItemId} and Id {request.Id}"); } }
public async Task DeleteConfigGenericItemExtentionAsync([FromBody] ConfigGenericItemExtentionDto request) { await _configGenericItemExtentionService.DeleteConfigGenericItemExtentionAsync(request); }