示例#1
0
文件: GlueService.cs 项目: SyPham/DMR
        //Cập nhật Brand
        public async Task <bool> Update(GlueCreateDto model)
        {
            var glue = _mapper.Map <Glue>(model);

            _repoGlue.Update(glue);
            var result = await _repoGlue.SaveAll();

            await _hubContext.Clients.All.SendAsync("summaryRecieve", "ok");

            return(result);
        }
示例#2
0
        //Cập nhật Brand
        public async Task <bool> Update(GlueCreateDto model)
        {
            var glue = _mapper.Map <Glue>(model);

            _repoGlue.Update(glue);
            return(await _repoGlue.SaveAll());
        }