public CompetetionStatisticResponse(CompetetionStatistic competetionStatistic) : this(true, string.Empty, competetionStatistic) { }
public async Task <CompetetionStatisticResponse> UpdateCompetetionStatisticAsync(CompetetionStatistic competetionStatistic) { try { _genericCompetetionStatisticRepository.UpdateAsync(competetionStatistic); await _unitOfWork.CompleteAsync(); return(new CompetetionStatisticResponse()); } catch (Exception ex) { return(new CompetetionStatisticResponse(ex.Message)); } }
private CompetetionStatisticResponse(bool success, string message, CompetetionStatistic competetionStatistic) : base(success, message) { this.competetionStatistic = competetionStatistic; }