public async Task <IActionResult> GetNuevo() { try { var entidad = _servicio.ObtenerNuevo(); if (entidad == null) { return(NotFound()); } return(await Task.FromResult <IActionResult>(Ok(Json(entidad)))); } catch (Exception) { return(BadRequest("The operation wasn't complete")); } }