Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 public Task DeleteAsync(Ccmatrix entity)
 {
     CCMatrixMockData.Current.CCMatrix.Remove(entity);
     return(Task.Run(() => $"CCmatrix record deleted successfully"));
 }
Beispiel #3
0
 public Task AddAsync(Ccmatrix entity)
 {
     CCMatrixMockData.Current.CCMatrix.Add(entity);
     return(Task.Run(() => $"CCmatrix record inserted successfully"));
 }