public void Update(UpdateIndustryDto dto) { var ind = _context.Industries.Find(dto.Id); ind.Name = dto.Name; _context.SaveChanges(); }
public async Task <IActionResult> Update(UpdateIndustryDto dto) { await Task.Run(() => _industryService.Update(dto)); return(Ok()); }