Exemple #1
0
        public IHttpActionResult PostGanancia(Cuenta cuenta)
        {
            try
            {
                var mng = new CuentaManager();
                mng.GenerarGanancia(cuenta);

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