public async Task <ActionResult> GetTotal(int id) { try { var total = await _SettlementRepository.GetTotal(id); return(Ok(total)); } catch (Exception exp) { _Logger.LogError(exp.Message); return(BadRequest(new ApiCommonResponse { Status = false })); } }