Example #1
0
        public async Task <IActionResult> GetidLast()
        {
            try
            {
                int id = await UserService.TheLastID();

                if (id == null)
                {
                    return(NoContent());
                }

                return(Ok(id));
            }
            catch (Exception ex)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError,
                                       $"Erro ao tentar recuperar a Ășltima usuario . Erro: {ex.Message}"));
            }
        }