public async Task <bool> AddTurnoverDifferential([FromBody] TurnoverDifferential turnoverDifferential) { bool turnoverDifferentialAdded = false; try { turnoverDifferentialAdded = await _sqlServerUow.TurnoverDifferentials.AddAsync(turnoverDifferential); } catch (Exception ex) { } return(turnoverDifferentialAdded); }
public async Task <bool> UpdateTurnoverDifferential([FromBody] TurnoverDifferential turnoverDifferential) { bool turnoverDifferentialUpdated = false; try { turnoverDifferentialUpdated = await _sqlServerUow.TurnoverDifferentials.UpdateAsync(turnoverDifferential); } catch (DbUpdateConcurrencyException dex) { } catch (Exception ex) { } return(turnoverDifferentialUpdated); }