Ejemplo n.º 1
0
        //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);
        }
Ejemplo n.º 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());
        }