public Task<int> UpdateAsync(ITestingArea testingArea) { if (String.IsNullOrEmpty(testingArea.Id)) { throw new ArgumentNullException("Id"); } return testingAreaRepository.UpdateAsync(testingArea); }
public async Task<int> UpdateAsync(ITestingArea testingArea) { return await repository.UpdateEntityAsync<TestingAreaEntity>(Mapper.Map<TestingAreaEntity>(testingArea)); }
public Task<int> InsertAsync(ITestingArea testingArea) { testingArea.Id = Guid.NewGuid().ToString(); return testingAreaRepository.InsertAsync(testingArea); }
public async Task<int> InsertAsync(ITestingArea testingArea) { return await repository.InsertEntityAsync<TestingAreaEntity>(Mapper.Map<TestingAreaEntity>(testingArea)); }