public async Task <bool> Delete(ServiceLocationOperation entity) { try { _dbContext.ServiceLocationOperations.Remove(entity); await _dbContext.SaveChangesAsync(); return(true); } catch (Exception e) { return(false); } }
public async Task <int> Insert(ServiceLocationOperation entity) { try { await _dbContext.ServiceLocationOperations.AddAsync(entity); await _dbContext.SaveChangesAsync(); return(entity.ServiceLocationOperationId); } catch (Exception e) { return(0); } }