コード例 #1
0
        public async Task <IHttpActionResult> CuentaContablePartidasPorArea()
        {
            try
            {
                IdentityUser user = await UserManager.FindByIdAsync(User.Identity.GetUserId());

                var model = service.ListarCuentasContables(user.Id);

                if (model != null)
                {
                    return(Ok(model));
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }