// Retrieve
        public IHttpActionResult Get()
        {
            apiResp = new ApiResponse();
            var mngCredito = new CoreAPI.CreditoManager();

            apiResp.Data = mngCredito.RetrieveAll();

            return(Ok(apiResp));
        }
        // DELETE ==
        public IHttpActionResult Delete(Credito credito)
        {
            try
            {
                var mngCredito = new CoreAPI.CreditoManager();
                mngCredito.Delete(credito);

                apiResp         = new ApiResponse();
                apiResp.Message = "Action was executed.";

                return(Ok(apiResp));
            }
            catch (Exceptions.BussinessException bex)
            {
                return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message)));
            }
        }
        // GET api/credito/
        // Retrieve by id
        public IHttpActionResult Get(string idC)
        {
            try
            {
                var mngCredito = new CoreAPI.CreditoManager();
                var credito    = new Credito
                {
                    idCredito = idC
                };

                credito      = mngCredito.RetrieveById(credito);
                apiResp      = new ApiResponse();
                apiResp.Data = credito;
                return(Ok(apiResp));
            }
            catch (Exceptions.BussinessException bex)
            {
                return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message)));
            }
        }