public async Task UpdateAsync(Ccmatrix entity) { var rec = await Task.Run(() => CCMatrixMockData.Current.CCMatrix.FirstOrDefault(x => x.Id == entity.Id)); if (rec != null) { rec.Country = entity.Country; rec.Cost = entity.Cost; } }
public Task DeleteAsync(Ccmatrix entity) { CCMatrixMockData.Current.CCMatrix.Remove(entity); return(Task.Run(() => $"CCmatrix record deleted successfully")); }
public Task AddAsync(Ccmatrix entity) { CCMatrixMockData.Current.CCMatrix.Add(entity); return(Task.Run(() => $"CCmatrix record inserted successfully")); }