public IHttpActionResult GetPenalty([FromUri] CreditInstallmentDto creditInstallmentDto) { var userId = User.Identity.GetUserId().Value; var result = _creditService.GetInstallmentWithPenalty(creditInstallmentDto, userId); if (!result.Success) { return(BadRequest(result.Message)); } else { return(Ok(result)); } }