//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); }
//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()); }