public List <Models.Prestacion.PrestacionSearch> GetPractDescList([FromBody] Search id) { try { if (!ModelState.IsValid) { return(null); } var os = new OSRepository(); return(os.GetPracticaByDesc(id.Cod, id.OsId)); //Todo review Error } catch (Exception ex) { var error = new Errores(); error.SetError(GetType().Name, GetMethod.ErrorLine(ex), ex.Message, ex.InnerException?.ToString() ?? string.Empty, id, string.Empty); return(null); } }