Example #1
0
        public async Task UpdateDataAsync(ModuleComponentDTO data)
        {
            await Db.UpdateAsync(_mapper.Map <mini_page_component>(data));

            data.Id = data.Component_Id;
            await Db.UpdateAsync(_mapper.Map <mini_component>(data));
        }
Example #2
0
        public async Task AddModuleComponentAsync(ModuleComponentDTO input)
        {
            input.Id           = IdHelper.GetId();
            input.Component_Id = IdHelper.GetId();
            await Db.InsertAsync(_mapper.Map <mini_page_component>(input));

            input.Id = input.Component_Id;
            await Db.InsertAsync(_mapper.Map <mini_component>(input));
        }