public Task UpdateAsync(DS_Company record) { var beforeUpdate = _context.DS_Company.Single(s => s.Id == record.Id); beforeUpdate.stockValues = record.stockValues; beforeUpdate.Name = record.Name; _context.DS_Company.Update(beforeUpdate); _context.SaveChanges(); return(Task.CompletedTask); }
public Task AddAsync(DS_Company record) { _context.Add(record); _context.SaveChanges(); return(Task.CompletedTask); }