Ejemplo n.º 1
0
        public IHttpActionResult IsFullyPaid(int id)
        {
            var userId = User.Identity.GetUserId().Value;

            var result = _creditService.IsFullyPaid(id, userId);

            if (result.Success)
            {
                return(Ok(result.Message));
            }
            else
            {
                return(BadRequest());
            }
        }